Επεξεργασία

Κοινή χρήση μέσω


DiscoveryDocument.References Property

Definition

A list of references contained within the discovery document.

public:
 property System::Collections::IList ^ References { System::Collections::IList ^ get(); };
public System.Collections.IList References { get; }
member this.References : System.Collections.IList
Public ReadOnly Property References As IList

Property Value

An IList containing the references within the discovery document.

Examples

The following code example enumerates over the references for a discovery document.

// 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.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.
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

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.

Applies to

See also