Freigeben über


DiscoveryDocument.References-Eigenschaft

Eine Liste von Verweisen, die im Discoverydokument enthalten sind.

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

Syntax

'Declaration
Public ReadOnly Property References As IList
'Usage
Dim instance As DiscoveryDocument
Dim value As IList

value = instance.References
public IList References { get; }
public:
property IList^ References {
    IList^ get ();
}
/** @property */
public IList get_References ()
public function get References () : IList

Eigenschaftenwert

Eine IList, die die Verweise im Discoverydokument enthält.

Hinweise

Ein Discoverydokument enthält Verweise auf Informationen über das Vorhandensein von XML-Webdiensten. Diese Verweise können sich auf Dienstbeschreibungen, XSD-Schemas oder sonstige Discoverydokumente beziehen. Die References-Eigenschaft enthält eine Liste dieser Verweise.

Beispiel

Das folgende Codebeispiel listet die Verweise für ein Discoverydokument auf.

' Enumerate the 'References' in the DiscoveryDocument.
Dim myEnumerator As IEnumerator = myDiscoveryDocument.References.GetEnumerator()
Console.WriteLine("The 'References' in the discovery document are-")
While myEnumerator.MoveNext()
   Console.Write(CType(myEnumerator.Current, DiscoveryDocumentReference).Url)
End While
// Enumerate the 'References' in the DiscoveryDocument.
IEnumerator myEnumerator = myDiscoveryDocument.References.GetEnumerator();
Console.WriteLine( "The 'References' in the discovery document are-" );
while ( myEnumerator.MoveNext() )
{
   Console.Write( ((DiscoveryDocumentReference)myEnumerator.Current).Url );
}
// Enumerate the 'References' in the DiscoveryDocument.
IEnumerator^ myEnumerator = myDiscoveryDocument->References->GetEnumerator();
Console::WriteLine( "The 'References' in the discovery document are-" );
while ( myEnumerator->MoveNext() )
      Console::Write( (dynamic_cast<DiscoveryDocumentReference^>(myEnumerator->Current)->Url) );
// Enumerate the 'References' in the DiscoveryDocument.
IEnumerator myEnumerator = myDiscoveryDocument.
    get_References().GetEnumerator();
Console.WriteLine(
    "The 'References' in the discovery document are-");
while (myEnumerator.MoveNext()) {
    Console.Write(((DiscoveryDocumentReference)myEnumerator.
        get_Current()).get_Url());
}

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

DiscoveryDocument-Klasse
DiscoveryDocument-Member
System.Web.Services.Discovery-Namespace
DiscoveryClientProtocol-Klasse