DiscoveryClientProtocol.Downloadとは? わかりやすく解説

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

DiscoveryClientProtocol.Download メソッド (String)

指定されURL探索ドキュメントStream オブジェクトダウンロードます。

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

例外例外
使用例使用例
' Call the constructor of the DiscoveryClientProtocol class.
Dim myDiscoveryClientProtocol As New
 DiscoveryClientProtocol()
myDiscoveryClientProtocol.Credentials = CredentialCache.DefaultCredentials
' 'dataservice.disco' is a sample discovery document.
Dim myStringUrl As String
 = "http://localhost:80/dataservice.disco"

Dim myStream As Stream = myDiscoveryClientProtocol.Download(myStringUrl)
Console.WriteLine("Size of the discovery document downloaded")
Console.WriteLine("is : {0} bytes", myStream.Length.ToString())
myStream.Close()
 // Call the constructor of the DiscoveryClientProtocol class.
 DiscoveryClientProtocol myDiscoveryClientProtocol =
             new DiscoveryClientProtocol();
 myDiscoveryClientProtocol.Credentials =  CredentialCache.DefaultCredentials;
// 'dataservice.disco' is a sample discovery document.
string myStringUrl = "http://localhost:80/dataservice.disco";

 Stream myStream = myDiscoveryClientProtocol.Download(ref myStringUrl);

 Console.WriteLine("Size of the discovery document downloaded");
 Console.WriteLine("is : {0} bytes", myStream.Length.ToString());
 myStream.Close();
// Call the constructor of the DiscoveryClientProtocol class.
DiscoveryClientProtocol^ myDiscoveryClientProtocol =
   gcnew DiscoveryClientProtocol;
myDiscoveryClientProtocol->Credentials = CredentialCache::DefaultCredentials;
// 'dataservice.disco' is a sample discovery document.
String^ myStringUrl = "http://localhost:80/dataservice.disco";

Stream^ myStream = myDiscoveryClientProtocol->Download( myStringUrl );

Console::WriteLine( "Size of the discovery document downloaded" );
Console::WriteLine( "is : {0} bytes", myStream->Length );
myStream->Close();
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
DiscoveryClientProtocol クラス
DiscoveryClientProtocol メンバ
System.Web.Services.Discovery 名前空間

DiscoveryClientProtocol.Download メソッド (String, String)

contentType パラメータ探索ドキュメントMIME エンコーディング設定して指定されURL探索ドキュメントStream オブジェクトダウンロードます。

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

例外例外
使用例使用例
Dim myDiscoFile As String
 = "http://localhost/MathService_vb.vsdisco"
Dim myEncoding As String
 = ""
Dim myDiscoveryClientProtocol As New
 DiscoveryClientProtocol()

Dim myStream As Stream = myDiscoveryClientProtocol.Download(myDiscoFile,
 myEncoding)
Console.WriteLine("The length of the stream in bytes: "
 & myStream.Length)
Console.WriteLine _
      ("The MIME encoding of the downloaded discovery document:
 " & myEncoding)
myStream.Close()
string myDiscoFile = "http://localhost/MathService_cs.vsdisco";
string myEncoding = "";
DiscoveryClientProtocol myDiscoveryClientProtocol = 
      new DiscoveryClientProtocol();

Stream myStream = myDiscoveryClientProtocol.Download
      (ref myDiscoFile,ref myEncoding);
Console.WriteLine("The length of the stream in bytes: "+
      myStream.Length);
Console.WriteLine("The MIME encoding of the downloaded "+
      "discovery document: "+ myEncoding);
myStream.Close();
String^ myDiscoFile = "http://localhost/MathService_cs.vsdisco";
String^ myEncoding = "";
DiscoveryClientProtocol^ myDiscoveryClientProtocol =
   gcnew DiscoveryClientProtocol;

Stream^ myStream = myDiscoveryClientProtocol->Download(
   myDiscoFile, myEncoding );
Console::WriteLine( "The length of the stream in bytes: {0}"
,
   myStream->Length );
Console::WriteLine( "The MIME encoding of the downloaded " +
   "discovery document: {0}", myEncoding );
myStream->Close();
String myDiscoFile = "http://localhost/MathService_jsl.vsdisco";
String myEncoding = "";
DiscoveryClientProtocol myDiscoveryClientProtocol = 
    new DiscoveryClientProtocol();
Stream myStream = myDiscoveryClientProtocol.Download(myDiscoFile,
    myEncoding);

Console.WriteLine("The length of the stream in bytes: "
 
    + myStream.get_Length());
Console.WriteLine("The MIME encoding of the downloaded "
    + "discovery document: " + myEncoding);
myStream.Close();
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
DiscoveryClientProtocol クラス
DiscoveryClientProtocol メンバ
System.Web.Services.Discovery 名前空間

DiscoveryClientProtocol.Download メソッド




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

辞書ショートカット

すべての辞書の索引

「DiscoveryClientProtocol.Download」の関連用語

DiscoveryClientProtocol.Downloadのお隣キーワード
検索ランキング

   

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



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

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

©2025 GRAS Group, Inc.RSS