ContractReference.DefaultFilename Property
.NET Framework (current version)
Gets the name of the file to use by default when saving the referenced service description.
Assembly: System.Web.Services (in System.Web.Services.dll)
Property Value
Type: System.StringName of the default file to use when saving the referenced service description to a file.
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: