HttpWebClientProtocol.Proxy プロパティ
アセンブリ: System.Web.Services (system.web.services.dll 内)

Dim instance As HttpWebClientProtocol Dim value As IWebProxy value = instance.Proxy instance.Proxy = value
/** @property */ public IWebProxy get_Proxy () /** @property */ public void set_Proxy (IWebProxy value)
ファイアウォールをとおして要求を行うためのプロキシ情報を格納している IWebProxy。既定値は、オペレーティング システムのプロキシ設定値です。

クライアントでシステムの設定と異なるプロキシ設定値を使用する必要がある場合は、Proxy プロパティを使用します。WebProxy クラスは IWebProxy を実装しているため、このクラスを使用してプロキシ設定を行います。
既定のプロキシ設定は、構成ファイルで設定できます。詳細については、「インターネット アプリケーションの構成」を参照してください。

Math XML Web サービスを呼び出す前にプロキシ設定を行う例を次に示します。この例の設定では、プロキシ サーバーが http://proxyserver、プロキシ ポートが 80、ローカル アドレスについてはプロキシ サーバーをバイパスします。
Dim math As New MyMath.Math() ' Set the proxy server to proxyserver, set the port to 80, and specify ' to bypass the proxy server for local addresses. Dim proxyObject As New WebProxy("http://proxyserver:80", True) math.Proxy = proxyObject ' Call the Add XML Web service method. Dim total As Integer = math.Add(8, 5)
MyMath.Math math = new MyMath.Math(); // Set the proxy server to proxyserver, set the port to 80, and specify to bypass the proxy server // for local addresses. IWebProxy proxyObject = new WebProxy("http://proxyserver:80", true); math.Proxy = proxyObject; // Call the Add XML Web service method. int total = math.Add(8, 5);
MyMath::Math^ math = gcnew MyMath::Math; // Set the proxy server to proxyserver, set the port to 80, and specify to bypass the proxy server // for local addresses. IWebProxy^ proxyObject = gcnew WebProxy( "http://proxyserver:80",true ); math->Proxy = proxyObject; // Call the Add XML Web service method. int total = math->Add( 8, 5 );
MyMath.Math math = new MyMath.Math(); // Set the proxy server to proxyserver, set the port to 80, // and specify to bypass the proxy server // for local addresses. IWebProxy proxyObject = new WebProxy("http://proxyserver:80", true); math.set_Proxy(proxyObject); // Call the Add XML Web service method. int total = math.Add(8, 5);

Windows 98, Windows 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


- HttpWebClientProtocol.Proxy プロパティのページへのリンク