DiscoveryDocumentReference.Document プロパティとは? わかりやすく解説

Weblio 辞書 > コンピュータ > .NET Framework クラス ライブラリ リファレンス > DiscoveryDocumentReference.Document プロパティの意味・解説 

DiscoveryDocumentReference.Document プロパティ

参照される探索ドキュメント内容を DiscoveryDocument オブジェクトとして取得します

名前空間: System.Web.Services.Discovery
アセンブリ: System.Web.Services (system.web.services.dll 内)
構文構文

Dim instance As DiscoveryDocumentReference
Dim value As DiscoveryDocument

value = instance.Document
public DiscoveryDocument Document { get; }
public:
property DiscoveryDocument^ Document {
    DiscoveryDocument^ get ();
}
/** @property */
public DiscoveryDocument get_Document ()
public function get Document
 () : DiscoveryDocument

プロパティ
参照される探索ドキュメント内容を表す DiscoveryDocument

例外例外
例外種類条件

InvalidOperationException

ClientProtocol プロパティnull 参照 (Visual Basic では Nothing) です。

または

ClientProtocol使用した XSD スキーマダウンロードまたは解決実行中にエラー発生しました

解説解説
使用例使用例
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);
   }
}
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
DiscoveryDocumentReference クラス
DiscoveryDocumentReference メンバ
System.Web.Services.Discovery 名前空間


このページでは「.NET Framework クラス ライブラリ リファレンス」からDiscoveryDocumentReference.Document プロパティを検索した結果を表示しています。
Weblioに収録されているすべての辞書からDiscoveryDocumentReference.Document プロパティを検索する場合は、下記のリンクをクリックしてください。
 全ての辞書からDiscoveryDocumentReference.Document プロパティ を検索

英和和英テキスト翻訳>> Weblio翻訳
英語⇒日本語日本語⇒英語
  

辞書ショートカット

すべての辞書の索引

「DiscoveryDocumentReference.Document プロパティ」の関連用語

DiscoveryDocumentReference.Document プロパティのお隣キーワード
検索ランキング

   

英語⇒日本語
日本語⇒英語
   



DiscoveryDocumentReference.Document プロパティのページの著作権
Weblio 辞書 情報提供元は 参加元一覧 にて確認できます。

   
日本マイクロソフト株式会社日本マイクロソフト株式会社
© 2025 Microsoft.All rights reserved.

©2025 GRAS Group, Inc.RSS