共用方式為


DiscoveryDocument.References 屬性

定義

內含於探索文件的參考清單。

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

屬性值

IList

IList,包含探索文件中的參考。

範例

下列程式碼範例會列舉探索檔的參考。

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

備註

探索檔包含 XML Web 服務存在相關資訊的參考。 這些參考可以參考服務描述、XSD 架構或其他探索檔。 屬性 References 包含這些參考的清單。

適用於

另請參閱