📄 reference.vb
字号:
'------------------------------------------------------------------------------
' <autogenerated>
' This code was generated by a tool.
' Runtime Version: 1.0.3705.209
'
' 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.ComponentModel
Imports System.Data
Imports System.Diagnostics
Imports System.Runtime.Serialization
Imports System.Web.Services
Imports System.Web.Services.Protocols
Imports System.Xml
Imports System.Xml.Serialization
'
'This source code was auto-generated by Microsoft.VSDesigner, Version 1.0.3705.209.
'
Namespace localhost
'<remarks/>
<System.Diagnostics.DebuggerStepThroughAttribute(), _
System.ComponentModel.DesignerCategoryAttribute("code"), _
System.Web.Services.WebServiceBindingAttribute(Name:="MainSoap", [Namespace]:="http://msdn.microsoft.com/vbasic/")> _
Public Class Main
Inherits System.Web.Services.Protocols.SoapHttpClientProtocol
'<remarks/>
Public Sub New()
MyBase.New
Me.Url = "http://localhost/howtobuildwebservices/main.asmx"
End Sub
'<remarks/>
<System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://msdn.microsoft.com/vbasic/About", RequestNamespace:="http://msdn.microsoft.com/vbasic/", ResponseNamespace:="http://msdn.microsoft.com/vbasic/", Use:=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle:=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)> _
Public Function About() As String
Dim results() As Object = Me.Invoke("About", New Object(-1) {})
Return CType(results(0),String)
End Function
'<remarks/>
Public Function BeginAbout(ByVal callback As System.AsyncCallback, ByVal asyncState As Object) As System.IAsyncResult
Return Me.BeginInvoke("About", New Object(-1) {}, callback, asyncState)
End Function
'<remarks/>
Public Function EndAbout(ByVal asyncResult As System.IAsyncResult) As String
Dim results() As Object = Me.EndInvoke(asyncResult)
Return CType(results(0),String)
End Function
'<remarks/>
<System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://msdn.microsoft.com/vbasic/GetCustomerOrderHistory", RequestNamespace:="http://msdn.microsoft.com/vbasic/", ResponseNamespace:="http://msdn.microsoft.com/vbasic/", Use:=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle:=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)> _
Public Function GetCustomerOrderHistory(ByVal strCustID As String) As CustomerAndOrderHistoryInfo
Dim results() As Object = Me.Invoke("GetCustomerOrderHistory", New Object() {strCustID})
Return CType(results(0),CustomerAndOrderHistoryInfo)
End Function
'<remarks/>
Public Function BeginGetCustomerOrderHistory(ByVal strCustID As String, ByVal callback As System.AsyncCallback, ByVal asyncState As Object) As System.IAsyncResult
Return Me.BeginInvoke("GetCustomerOrderHistory", New Object() {strCustID}, callback, asyncState)
End Function
'<remarks/>
Public Function EndGetCustomerOrderHistory(ByVal asyncResult As System.IAsyncResult) As CustomerAndOrderHistoryInfo
Dim results() As Object = Me.EndInvoke(asyncResult)
Return CType(results(0),CustomerAndOrderHistoryInfo)
End Function
'<remarks/>
<System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://msdn.microsoft.com/vbasic/GetTenMostExpensiveProducts", RequestNamespace:="http://msdn.microsoft.com/vbasic/", ResponseNamespace:="http://msdn.microsoft.com/vbasic/", Use:=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle:=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)> _
Public Function GetTenMostExpensiveProducts() As System.Data.DataSet
Dim results() As Object = Me.Invoke("GetTenMostExpensiveProducts", New Object(-1) {})
Return CType(results(0),System.Data.DataSet)
End Function
'<remarks/>
Public Function BeginGetTenMostExpensiveProducts(ByVal callback As System.AsyncCallback, ByVal asyncState As Object) As System.IAsyncResult
Return Me.BeginInvoke("GetTenMostExpensiveProducts", New Object(-1) {}, callback, asyncState)
End Function
'<remarks/>
Public Function EndGetTenMostExpensiveProducts(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
'<remarks/>
<System.Xml.Serialization.XmlTypeAttribute([Namespace]:="http://msdn.microsoft.com/vbasic/")> _
Public Class CustomerAndOrderHistoryInfo
'<remarks/>
Public Orders As dsCustOrderHist
'<remarks/>
<System.Xml.Serialization.XmlAttributeAttribute()> _
Public Company As String
End Class
<Serializable(), _
System.ComponentModel.DesignerCategoryAttribute("code"), _
System.Diagnostics.DebuggerStepThrough(), _
System.ComponentModel.ToolboxItem(true)> _
Public Class dsCustOrderHist
Inherits DataSet
Private tableCustOrderHist As CustOrderHistDataTable
Public Sub New()
MyBase.New
Me.InitClass
Dim schemaChangedHandler As System.ComponentModel.CollectionChangeEventHandler = AddressOf Me.SchemaChanged
AddHandler Me.Tables.CollectionChanged, schemaChangedHandler
AddHandler Me.Relations.CollectionChanged, schemaChangedHandler
End Sub
Protected Sub New(ByVal info As SerializationInfo, ByVal context As StreamingContext)
MyBase.New
Dim strSchema As String = CType(info.GetValue("XmlSchema", GetType(System.String)),String)
If (Not (strSchema) Is Nothing) Then
Dim ds As DataSet = New DataSet
ds.ReadXmlSchema(New XmlTextReader(New System.IO.StringReader(strSchema)))
If (Not (ds.Tables("CustOrderHist")) Is Nothing) Then
Me.Tables.Add(New CustOrderHistDataTable(ds.Tables("CustOrderHist")))
End If
Me.DataSetName = ds.DataSetName
Me.Prefix = ds.Prefix
Me.Namespace = ds.Namespace
Me.Locale = ds.Locale
Me.CaseSensitive = ds.CaseSensitive
Me.EnforceConstraints = ds.EnforceConstraints
Me.Merge(ds, false, System.Data.MissingSchemaAction.Add)
Me.InitVars
Else
Me.InitClass
End If
Me.GetSerializationData(info, context)
Dim schemaChangedHandler As System.ComponentModel.CollectionChangeEventHandler = AddressOf Me.SchemaChanged
AddHandler Me.Tables.CollectionChanged, schemaChangedHandler
AddHandler Me.Relations.CollectionChanged, schemaChangedHandler
End Sub
<System.ComponentModel.Browsable(false), _
System.ComponentModel.DesignerSerializationVisibilityAttribute(System.ComponentModel.DesignerSerializationVisibility.Content)> _
Public ReadOnly Property CustOrderHist As CustOrderHistDataTable
Get
Return Me.tableCustOrderHist
End Get
End Property
Public Overrides Function Clone() As DataSet
Dim cln As dsCustOrderHist = CType(MyBase.Clone,dsCustOrderHist)
cln.InitVars
Return cln
End Function
Protected Overrides Function ShouldSerializeTables() As Boolean
Return false
End Function
Protected Overrides Function ShouldSerializeRelations() As Boolean
Return false
End Function
Protected Overrides Sub ReadXmlSerializable(ByVal reader As XmlReader)
Me.Reset
Dim ds As DataSet = New DataSet
ds.ReadXml(reader)
If (Not (ds.Tables("CustOrderHist")) Is Nothing) Then
Me.Tables.Add(New CustOrderHistDataTable(ds.Tables("CustOrderHist")))
End If
Me.DataSetName = ds.DataSetName
Me.Prefix = ds.Prefix
Me.Namespace = ds.Namespace
Me.Locale = ds.Locale
Me.CaseSensitive = ds.CaseSensitive
Me.EnforceConstraints = ds.EnforceConstraints
Me.Merge(ds, false, System.Data.MissingSchemaAction.Add)
Me.InitVars
End Sub
Protected Overrides Function GetSchemaSerializable() As System.Xml.Schema.XmlSchema
Dim stream As System.IO.MemoryStream = New System.IO.MemoryStream
Me.WriteXmlSchema(New XmlTextWriter(stream, Nothing))
stream.Position = 0
Return System.Xml.Schema.XmlSchema.Read(New XmlTextReader(stream), Nothing)
End Function
Friend Sub InitVars()
Me.tableCustOrderHist = CType(Me.Tables("CustOrderHist"),CustOrderHistDataTable)
If (Not (Me.tableCustOrderHist) Is Nothing) Then
Me.tableCustOrderHist.InitVars
End If
End Sub
Private Sub InitClass()
Me.DataSetName = "dsCustOrderHist"
Me.Prefix = ""
Me.Namespace = "http://tempuri.org/dsCustOrderHist.xsd"
Me.Locale = New System.Globalization.CultureInfo("en-US")
Me.CaseSensitive = false
Me.EnforceConstraints = true
Me.tableCustOrderHist = New CustOrderHistDataTable
Me.Tables.Add(Me.tableCustOrderHist)
End Sub
Private Function ShouldSerializeCustOrderHist() As Boolean
Return false
End Function
Private Sub SchemaChanged(ByVal sender As Object, ByVal e As System.ComponentModel.CollectionChangeEventArgs)
If (e.Action = System.ComponentModel.CollectionChangeAction.Remove) Then
Me.InitVars
End If
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -