featuredservice.vb

来自「asp.net技术内幕的书配源码」· VB 代码 · 共 52 行

VB
52
字号
'------------------------------------------------------------------------------
' <autogenerated>
'     This code was generated by a tool.
'     Runtime Version: 1.0.2914.16
'
'     Changes to this file may cause incorrect behavior and will be lost if 
'     the code is regenerated.
' </autogenerated>
'------------------------------------------------------------------------------

Option Strict Off
Option Explicit On

Imports System
Imports System.Diagnostics
Imports System.Web.Services
Imports System.Web.Services.Protocols
Imports System.Xml.Serialization

'
'This source code was auto-generated by wsdl, Version=1.0.2914.16.
'

<System.Web.Services.WebServiceBindingAttribute(Name:="FeaturedServiceSoap", [Namespace]:="http://yourdomain.com/webservices")>  _
Public Class FeaturedService
    Inherits System.Web.Services.Protocols.SoapHttpClientProtocol
    
    <System.Diagnostics.DebuggerStepThroughAttribute()>  _
    Public Sub New()
        MyBase.New
        Me.Url = "http://localhost/chapter/FeaturedService.asmx"
    End Sub
    
    <System.Diagnostics.DebuggerStepThroughAttribute(),  _
     System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://yourdomain.com/webservices/GetFeatured", RequestNamespace:="http://yourdomain.com/webservices", ResponseNamespace:="http://yourdomain.com/webservices", Use:=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle:=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)>  _
    Public Function GetFeatured() As System.Data.DataSet
        Dim results() As Object = Me.Invoke("GetFeatured", New Object(-1) {})
        Return CType(results(0),System.Data.DataSet)
    End Function
    
    <System.Diagnostics.DebuggerStepThroughAttribute()>  _
    Public Function BeginGetFeatured(ByVal callback As System.AsyncCallback, ByVal asyncState As Object) As System.IAsyncResult
        Return Me.BeginInvoke("GetFeatured", New Object(-1) {}, callback, asyncState)
    End Function
    
    <System.Diagnostics.DebuggerStepThroughAttribute()>  _
    Public Function EndGetFeatured(ByVal asyncResult As System.IAsyncResult) As System.Data.DataSet
        Dim results() As Object = Me.EndInvoke(asyncResult)
        Return CType(results(0),System.Data.DataSet)
    End Function
End Class

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?