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

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

DiscoveryClientProtocol.WriteAll メソッド

Documents プロパティ探索ドキュメントXML スキーマ定義 (XSD) スキーマ、およびサービス説明のすべてを指定されディレクトリ書き込み、そのディレクトリファイル作成します

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

Public Function WriteAll ( _
    directory As String, _
    topLevelFilename As String _
) As DiscoveryClientResultCollection
Dim instance As DiscoveryClientProtocol
Dim directory As String
Dim topLevelFilename As String
Dim returnValue As DiscoveryClientResultCollection

returnValue = instance.WriteAll(directory, topLevelFilename)
public DiscoveryClientResultCollection WriteAll (
    string directory,
    string topLevelFilename
)
public:
DiscoveryClientResultCollection^ WriteAll (
    String^ directory, 
    String^ topLevelFilename
)
public DiscoveryClientResultCollection WriteAll (
    String directory, 
    String topLevelFilename
)
public function WriteAll (
    directory : String, 
    topLevelFilename : String
) : DiscoveryClientResultCollection

パラメータ

directory

現在 Documents プロパティにあるすべてのドキュメント保存先ディレクトリ

topLevelFilename

保存されているすべてのドキュメントマップ格納している、作成または上書きするファイルの名前。

戻り値
保存されているすべてのファイル結果格納している DiscoveryClientResultCollection。

解説解説
使用例使用例

DiscoverAny と ResolveAll を呼び出した後に WriteAll メソッド呼び出して Web サービス探索結果ディスク書き込む Web フォームコード例次に示します

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

   Dim client as DiscoveryClientProtocol =
 new DiscoveryClientProtocol()
   ' Use default credentials to access the URL being discovered.
   client.Credentials = CredentialCache.DefaultCredentials
   Try 
        Dim doc As DiscoveryDocument
     ' Discover the URL for any discoverable documents. 
     doc = client.DiscoverAny(sourceUrl)

 ' Resolve all possible references from the supplied URL.
     client.ResolveAll()
           
    Catch e2 As Exception
          DiscoveryResultsGrid.Columns.Clear()
       Status.Text = e2.Message
    End Try

    ' Save the discovery results to disk.        
    Dim results As DiscoveryClientResultCollection
 
    results = client.WriteAll(outputDirectory, "results.discomap")
    Status.Text = "The following file holds the links to each
 of the discovery results: <b>" + _ 
                                  Path.Combine(outputDirectory,"results.discomap")
 + "</b>"
   End Sub
 protected void Discover_Click(object Source,
 EventArgs e)
 {
  // Specify the URL to discover.
  string sourceUrl = DiscoURL.Text;
  // Specify the URL to save discovery results to or read from.
  string outputDirectory = DiscoDir.Text;

      DiscoveryClientProtocol client = new DiscoveryClientProtocol();
  // Use default credentials to access the URL being discovered.
      client.Credentials = CredentialCache.DefaultCredentials;

      try 
      {
           DiscoveryDocument doc;
        
        // Discover the URL for any discoverable documents. 
    doc = client.DiscoverAny(sourceUrl);
   
        // Resolve all possible references from the supplied URL.
        client.ResolveAll();
      }
      catch ( Exception e2) 
      {
        DiscoveryResultsGrid.Columns.Clear();
        Status.Text = e2.Message;
      }

  // Save the discovery results to disk.
      DiscoveryClientResultCollection results = client.WriteAll(outputDirectory,
 "results.discomap");
      Status.Text = "The following file holds the links to each of the discovery
 results: <b>" + 
                                  Path.Combine(outputDirectory,"results.discomap")
 + "</b>";
}
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
DiscoveryClientProtocol クラス
DiscoveryClientProtocol メンバ
System.Web.Services.Discovery 名前空間
ReadAll
DiscoveryClientProtocol.DiscoveryClientResultsFile


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

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

辞書ショートカット

すべての辞書の索引

「DiscoveryClientProtocol.WriteAll メソッド」の関連用語

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

   

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



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

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

©2025 GRAS Group, Inc.RSS