DiscoveryDocument.References Property
A list of references contained within the discovery document.
[Visual Basic] Public ReadOnly Property References As IList [C#] public IList References {get;} [C++] public: __property IList* get_References(); [JScript] public function get References() : IList;
Property Value
An IList containing the references within the discovery document.
Remarks
A discovery document contains references to information about the existence of XML Web services. These references can refer to service descriptions, XSD schemas, or other discovery documents. The References property contains a list of these references.
Example
[Visual Basic, C#, C++] The following code example enumerates over the references for a discovery document.
[Visual Basic] ' 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 [C#] // 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 ); } [C++] // Enumerate the 'References' in the DiscoveryDocument. IEnumerator* myEnumerator = myDiscoveryDocument -> References -> GetEnumerator(); Console::WriteLine(S"The 'References' in the discovery document are-"); while (myEnumerator->MoveNext()) Console::Write( (dynamic_cast<DiscoveryDocumentReference*>(myEnumerator->Current)->Url) );
[JScript] No example is available for JScript. To view a Visual Basic, C#, or C++ example, click the Language Filter button
in the upper-left corner of the page.
Requirements
Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family
See Also
DiscoveryDocument Class | DiscoveryDocument Members | System.Web.Services.Discovery Namespace | DiscoveryClientProtocol