DiscoveryClientProtocol.Download メソッド (String)
アセンブリ: System.Web.Services (system.web.services.dll 内)
構文Dim instance As DiscoveryClientProtocol Dim url As String Dim returnValue As Stream returnValue = instance.Download(url)
戻り値
指定された URL のドキュメントを格納している Stream。
例外
使用例' 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();
プラットフォーム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 によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。
バージョン情報
参照DiscoveryClientProtocol.Download メソッド (String, String)
アセンブリ: System.Web.Services (system.web.services.dll 内)
構文Dim instance As DiscoveryClientProtocol Dim url As String Dim contentType As String Dim returnValue As Stream returnValue = instance.Download(url, contentType)
戻り値
指定された URL のドキュメントを格納している Stream。
例外
使用例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();
プラットフォーム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 によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。
バージョン情報
参照DiscoveryClientProtocol.Download メソッド
Weblioに収録されているすべての辞書からDiscoveryClientProtocol.Downloadを検索する場合は、下記のリンクをクリックしてください。
全ての辞書からDiscoveryClientProtocol.Download
を検索
- DiscoveryClientProtocol.Downloadのページへのリンク