DiscoveryClientProtocol.ReadAll メソッドとは? わかりやすく解説

Weblio 辞書 > コンピュータ > .NET Framework クラス ライブラリ リファレンス > DiscoveryClientProtocol.ReadAll メソッドの意味・解説 

DiscoveryClientProtocol.ReadAll メソッド

保存され探索ドキュメントマップ格納されているファイル読み取ります。その探索ドキュメントには、そのファイル参照している探索ドキュメントXML スキーマ定義 (XSD) スキーマ、およびサービス説明を持つ Documents プロパティReferences プロパティ読み込まれています。

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

Public Function ReadAll ( _
    topLevelFilename As String _
) As DiscoveryClientResultCollection
Dim instance As DiscoveryClientProtocol
Dim topLevelFilename As String
Dim returnValue As DiscoveryClientResultCollection

returnValue = instance.ReadAll(topLevelFilename)
public DiscoveryClientResultCollection ReadAll (
    string topLevelFilename
)
public:
DiscoveryClientResultCollection^ ReadAll (
    String^ topLevelFilename
)
public DiscoveryClientResultCollection ReadAll (
    String topLevelFilename
)
public function ReadAll (
    topLevelFilename : String
) : DiscoveryClientResultCollection

パラメータ

topLevelFilename

読み込む対象となるファイルの名前。このファイルには保存されている探索ドキュメントマップ格納されています。

戻り値
保存されている探索ドキュメントマップ格納しているファイル見つかった結果格納されている DiscoveryClientResultCollection。ファイル形式は DiscoveryClientProtocol.DiscoveryClientResultsFile クラスXMLシリアル化されています。ただし、通常は WriteAll メソッドまたは Disco.exe だけを使用してファイル作成します

解説解説

保存されている探索ドキュメントマップ格納しているファイルは、WriteAll メソッドまたは Disco.exe により作成できます

ファイル現在のディレクトリない場合は、topLevelFilename絶対パス含める必要があります

使用例使用例

ReadAll メソッド使用して既存ディスカバリ マップ ドキュメント内に見つかったドキュメント参照に関する詳細を DataGrid に読み込む Web フォームコード例次に示します

Public Sub Discover_Click(Source As
 Object, e as EventArgs )
   ' Specify the URL to read the discovery results from.
   Dim outputDirectory As String
 = DiscoDir.Text

   Dim client as DiscoveryClientProtocol =
 new DiscoveryClientProtocol()
   ' Use default credentials to access files containing the previously
 saved discovery results.
   client.Credentials = CredentialCache.DefaultCredentials
   Try 
        Dim doc As DiscoveryDocument
  
    ' Read in existing discovery results.
     Dim results As DiscoveryClientResultCollection
 
     results = client.ReadAll(Path.Combine(DiscoDir.Text,"results.discomap"))

   Catch e2 As Exception
          DiscoveryResultsGrid.Columns.Clear()
       Status.Text = e2.Message
   End Try

   ' If disocvery documents existed in the supplied folder, display
 the results in a data grid.
    If (client.Documents.Count > 0) Then
         ' Populate the data grid with the discovery results.
     PopulateGrid(client)
    End If
End Sub
 protected void Discover_Click(object Source,
 EventArgs e)
 {
  // Specify the URL to read the discovery results from.
  string outputDirectory = DiscoDir.Text;

      DiscoveryClientProtocol client = new DiscoveryClientProtocol();
  // Use default credentials to access the files containing the discovery
 results.
      client.Credentials = CredentialCache.DefaultCredentials;

      try {
           DiscoveryDocument doc;
    // Read in existing discovery results.
        DiscoveryClientResultCollection results = client.ReadAll(Path.Combine(DiscoDir.Text
,"results.discomap"));
      }
      catch ( Exception e2) 
      {
        DiscoveryResultsGrid.Columns.Clear();
        Status.Text = e2.Message;
      }
  // If discovery documents existed in the supplied folder, display
 the results in a data grid.
      if (client.Documents.Count > 0)
      PopulateGrid(client);
}
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
DiscoveryClientProtocol クラス
DiscoveryClientProtocol メンバ
System.Web.Services.Discovery 名前空間


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

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

辞書ショートカット

すべての辞書の索引

DiscoveryClientProtocol.ReadAll メソッドのお隣キーワード
検索ランキング

   

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



DiscoveryClientProtocol.ReadAll メソッドのページの著作権
Weblio 辞書 情報提供元は 参加元一覧 にて確認できます。

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

©2025 GRAS Group, Inc.RSS