DiscoveryDocumentReference.Document プロパティ
アセンブリ: System.Web.Services (system.web.services.dll 内)

参照される探索ドキュメントの内容を表す DiscoveryDocument。



Dim myUrl As String = "http://localhost/Sample_vb.vsdisco" Dim myProtocol As New DiscoveryClientProtocol() ' Get the discovery document myDiscoveryDocument. Dim myDiscoveryDocument As DiscoveryDocument = myProtocol.Discover(myUrl) ' Get the references of myDiscoveryDocument. Dim myEnumerator As IEnumerator = myDiscoveryDocument.References.GetEnumerator() While myEnumerator.MoveNext() Dim myNewReference As DiscoveryDocumentReference = _ CType(myEnumerator.Current, DiscoveryDocumentReference) ' Set the ClientProtocol of myNewReference. Dim myNewProtocol As DiscoveryClientProtocol = myNewReference.ClientProtocol ' Verify for all the valid references. myNewReference.ResolveAll() ' Get the document of myNewReference. Dim myNewDiscoveryDocument As DiscoveryDocument = myNewReference.Document Dim myNewEnumerator As IEnumerator = _ myNewDiscoveryDocument.References.GetEnumerator() Console.WriteLine("The valid discovery document is : " + ControlChars.NewLine) While myNewEnumerator.MoveNext() ' Display the references of myNewDiscoveryDocument on the console. Console.WriteLine(CType(myNewEnumerator.Current, DiscoveryDocumentReference).Ref) End While End While
string myUrl = "http://localhost/Sample_cs.vsdisco"; DiscoveryClientProtocol myProtocol = new DiscoveryClientProtocol(); // Get the discovery document myDiscoveryDocument. DiscoveryDocument myDiscoveryDocument = myProtocol.Discover(myUrl); // Get the references of myDiscoveryDocument. IEnumerator myEnumerator = myDiscoveryDocument.References.GetEnumerator(); while(myEnumerator.MoveNext()) { DiscoveryDocumentReference myNewReference = (DiscoveryDocumentReference)myEnumerator.Current; // Set the ClientProtocol of myNewReference. DiscoveryClientProtocol myNewProtocol = myNewReference.ClientProtocol; // Verify for all the valid references. myNewReference.ResolveAll(); // Get the document of myNewReference. DiscoveryDocument myNewDiscoveryDocument = myNewReference.Document; IEnumerator myNewEnumerator = myNewDiscoveryDocument.References.GetEnumerator(); Console.WriteLine("The valid discovery document is : \n"); while(myNewEnumerator.MoveNext()) { // Display the references of myNewDiscoveryDocument on the console. Console.WriteLine(((DiscoveryDocumentReference)myNewEnumerator.Current).Ref); } }

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 によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


Weblioに収録されているすべての辞書からDiscoveryDocumentReference.Document プロパティを検索する場合は、下記のリンクをクリックしてください。

- DiscoveryDocumentReference.Document プロパティのページへのリンク