Hinweis
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, sich anzumelden oder das Verzeichnis zu wechseln.
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, das Verzeichnis zu wechseln.
Ruft den Namen der Datei ab, die beim Speichern der Dienstbeschreibung, auf die verwiesen wird, als Standard verwendet werden soll.
Namespace: System.Web.Services.Discovery
Assembly: System.Web.Services (in system.web.services.dll)
Syntax
'Declaration
Public Overrides ReadOnly Property DefaultFilename As String
'Usage
Dim instance As ContractReference
Dim value As String
value = instance.DefaultFilename
public override string DefaultFilename { get; }
public:
virtual property String^ DefaultFilename {
String^ get () override;
}
/** @property */
public String get_DefaultFilename ()
public override function get DefaultFilename () : String
Eigenschaftenwert
Der Name der Standarddatei, die beim Speichern der Dienstbeschreibung, auf die verwiesen wird, verwendet werden soll.
Beispiel
Dim myProtocol As New DiscoveryClientProtocol()
' Get the DiscoveryDocument.
Dim myDiscoveryDocument As DiscoveryDocument = _
myProtocol.Discover("https://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)
DiscoveryClientProtocol myProtocol = new DiscoveryClientProtocol();
// Get the DiscoveryDocument.
DiscoveryDocument myDiscoveryDocument =
myProtocol.Discover("https://localhost/ContractReference/test_cs.disco");
ArrayList myArrayList = (ArrayList)myDiscoveryDocument.References;
// Get the ContractReference.
ContractReference myContractRefrence = (ContractReference)myArrayList[0];
// Get the DefaultFileName associated with the .disco file.
String myFileName = myContractRefrence.DefaultFilename;
// Get the URL associated with the .disco file.
String myUrl = myContractRefrence.Url;
Console.WriteLine("The DefaulFilename is: " + myUrl);
Console.WriteLine("The URL is: " + myUrl);
DiscoveryClientProtocol^ myProtocol = gcnew DiscoveryClientProtocol;
// Get the DiscoveryDocument.
DiscoveryDocument^ myDiscoveryDocument = myProtocol->Discover( "https://localhost/ContractReference/test_cs.disco" );
ArrayList^ myArrayList = dynamic_cast<ArrayList^>(myDiscoveryDocument->References);
// Get the ContractReference.
ContractReference^ myContractRefrence = dynamic_cast<ContractReference^>(myArrayList[ 0 ]);
// Get the DefaultFileName associated with the .disco file.
String^ myFileName = myContractRefrence->DefaultFilename;
// Get the URL associated with the .disco file.
String^ myUrl = myContractRefrence->Url;
Console::WriteLine( "The DefaulFilename is: {0}", myUrl );
Console::WriteLine( "The URL is: {0}", myUrl );
DiscoveryClientProtocol myProtocol = new DiscoveryClientProtocol();
// Get the DiscoveryDocument.
DiscoveryDocument myDiscoveryDocument = myProtocol.Discover(
"https://localhost/ContractReference/test_cs.disco");
ArrayList myArrayList = (ArrayList)(myDiscoveryDocument.
get_References());
// Get the ContractReference.
ContractReference myContractRefrence = (ContractReference)myArrayList.
get_Item(0);
// Get the DefaultFileName associated with the .disco file.
String myFileName = myContractRefrence.get_DefaultFilename();
// Get the URL associated with the .disco file.
String myUrl = myContractRefrence.get_Url();
Console.WriteLine("The DefaulFilename is: " + myUrl);
Console.WriteLine("The URL is: " + myUrl);
Plattformen
Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
.NET Framework unterstützt nicht alle Versionen sämtlicher Plattformen. Eine Liste der unterstützten Versionen finden Sie unter Systemanforderungen.
Versionsinformationen
.NET Framework
Unterstützt in: 2.0, 1.1, 1.0
Siehe auch
Referenz
ContractReference-Klasse
ContractReference-Member
System.Web.Services.Discovery-Namespace