ContractReference.DefaultFilename Property

 

Gets the name of the file to use by default when saving the referenced service description.

Namespace:   System.Web.Services.Discovery
Assembly:  System.Web.Services (in System.Web.Services.dll)

Public Overrides ReadOnly Property DefaultFilename As String

Property Value

Type: System.String

Name 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
Return to top
Show: