convertunits.vb
来自「asp入门到精通的源代码」· VB 代码 · 共 55 行
VB
55 行
'------------------------------------------------------------------------------
' <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.
'
Namespace TYASPNET.Clients
Public Class <System.Web.Services.WebServiceBindingAttribute(Name:="ConvertUnitsSoap", [Namespace]:="http://tempuri.org/")> _
ConvertUnits
Inherits System.Web.Services.Protocols.SoapHttpClientProtocol
Public Sub <System.Diagnostics.DebuggerStepThroughAttribute()> _
New()
MyBase.New
Me.Url = "http://localhost/tyaspnet21days/day16/ConvertUnits.asmx"
End Sub
Public Function <System.Diagnostics.DebuggerStepThroughAttribute(), _
System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://tempuri.org/Convert")> _
[Convert](ByVal dblValue As Double, ByVal strFrom As String, ByVal strTo As String) As Double
Dim results() As Object = Me.Invoke("Convert", New Object() {dblValue, strFrom, strTo})
Return CType(results(0),Double)
End Function
Public Function <System.Diagnostics.DebuggerStepThroughAttribute()> _
BeginConvert(ByVal dblValue As Double, ByVal strFrom As String, ByVal strTo As String, ByVal callback As System.AsyncCallback, ByVal asyncState As Object) As System.IAsyncResult
Return Me.BeginInvoke("Convert", New Object() {dblValue, strFrom, strTo}, callback, asyncState)
End Function
Public Function <System.Diagnostics.DebuggerStepThroughAttribute()> _
EndConvert(ByVal asyncResult As System.IAsyncResult) As Double
Dim results() As Object = Me.EndInvoke(asyncResult)
Return CType(results(0),Double)
End Function
End Class
End Namespace
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?