ContractReference.Url Property
.NET Framework (current version)
Gets or sets the URL for the referenced Service Description.
Assembly: System.Web.Services (in System.Web.Services.dll)
For the ContractReference class, the Url property returns the value of the Ref property.
Dim myProtocol As New DiscoveryClientProtocol() ' Get the DiscoveryDocument. Dim myDiscoveryDocument As DiscoveryDocument = _ myProtocol.Discover("http://localhost/ContractReference/Test_vb.disco") Dim myArrayList As ArrayList = _ CType(myDiscoveryDocument.References, ArrayList) ' Get the ContractReference. Dim myContractRefrence As ContractReference = _ CType(myArrayList(0), ContractReference) ' Get the DefaultFileName associated with the .disco file. Dim myFileName As String = myContractRefrence.DefaultFilename ' Get the URL associated with the .disco file. Dim myUrl As String = myContractRefrence.Url Console.WriteLine("The DefaulFilename is: " + myUrl) Console.WriteLine("The URL is: " + myUrl)
.NET Framework
Available since 1.1
Available since 1.1
Show: