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 属性包含这些引用的列表。

适用于

另请参阅