WebProxyとは? わかりやすく解説

WebProxy クラス

WebRequest クラスの HTTP プロキシ設定を格納します。

名前空間: System.Net
アセンブリ: System (system.dll 内)
構文構文

<SerializableAttribute> _
Public Class WebProxy
    Implements IWebProxy, ISerializable
[SerializableAttribute] 
public class WebProxy : IWebProxy, ISerializable
[SerializableAttribute] 
public ref class WebProxy : IWebProxy, ISerializable
/** @attribute SerializableAttribute() */ 
public class WebProxy implements IWebProxy,
 ISerializable
SerializableAttribute 
public class WebProxy implements IWebProxy,
 ISerializable
解説解説

WebProxy クラスは、要求の送信に Web プロキシが使用されているかどうかを確認するために WebRequest インスタンスが使用するプロキシ設定を格納します。グローバル Web プロキシ設定は、コンピュータの構成ファイルおよびアプリケーション構成ファイルで指定でき、アプリケーションで WebProxy クラスのインスタンスを使用して、Web プロキシの使用方法をカスタマイズできます。WebProxy クラスは、IWebProxy インターフェイスの基本実装です。

Web プロキシ クラスのインスタンスは、以下のいずれかのメソッドを使用して取得できます。

これらのメソッドは、さらに詳細にカスタマイズできる WebProxy インスタンスを提供します。これらのメソッドの違いは、アプリケーションに返される前に実行されるインスタンスの初期化方法です。WebProxy コンストラクタは、Address プロパティを null 参照 (Visual Basic では Nothing) に設定して、WebProxy クラスのインスタンスを返します。要求がこの状態で WebProxy インスタンスを使用した場合、要求の送信にプロキシが使用されません。

GetDefaultProxy メソッドは、Address、BypassProxyOnLocal、BypassList の各プロパティを Internet Explorer 5.5 以降で使用される値に設定して、WebProxy クラスのインスタンスを返します。

Select メソッドは、Inernet Explorer と構成ファイルの設定の組み合わせに応じてプロパティを設定して、WebProxy クラスのインスタンスを返します。

WebProxy クラスは、プロキシ構成スクリプトの自動検出と実行をサポートしています。この機能は、WPAD (Web Proxy Auto-Discovery) とも呼ばれます。自動プロキシ構成を使用する場合は、構成スクリプト (通常は Wpad.dat) の検索、ダウンロード、コンパイル、および実行が必要です。これらの操作が成功した場合、構成スクリプトから要求に使用できるプロキシが返されます。

使用例使用例

WebRequest インスタンスに WebProxy インスタンスを割り当てるコード例を次に示します。WebRequest インスタンスは、プロキシを使用して、外部インターネット リソースに接続します。WPAD 機能の使用方法の例については、AutomaticConfigurationScript プロパティの説明を参照してください。

Dim proxyObject As New WebProxy("http://proxyserver:80/",
 True)
Dim req As WebRequest = WebRequest.Create("http://www.contoso.com")
req.Proxy = proxyObject

WebProxy proxyObject = new WebProxy("http://proxyserver:80/"
,true);
WebRequest req = WebRequest.Create("http://www.contoso.com");
req.Proxy = proxyObject;

WebProxy^ proxyObject = gcnew WebProxy( "http://proxyserver:80/",true
 );
WebRequest^ req = WebRequest::Create( "http://www.contoso.com"
 );
req->Proxy = proxyObject;
WebProxy proxyObject = new WebProxy("http://proxyserver:80/",
 true);
WebRequest req = WebRequest.Create("http://www.contoso.com");
req.set_Proxy(proxyObject);
継承階層継承階層
System.Object
  System.Net.WebProxy
スレッド セーフスレッド セーフ
この型の public static (Visual Basic では Shared) メンバはすべて、スレッド セーフです。インスタンス メンバの場合は、スレッド セーフであるとは限りません。
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照

WebProxy コンストラクタ ()

WebProxy クラスの空のインスタンスを初期化します。

名前空間: System.Net
アセンブリ: System (system.dll 内)
構文構文

解説解説
使用例使用例

このコンストラクタを実際に呼び出すコード例を次に示します。

public static WebProxy CreateProxy()
{
    return new WebProxy();
}
WebProxy^ CreateProxy()
{
   return gcnew WebProxy;
}
public static WebProxy CreateProxy()
{
    return new WebProxy();
} //CreateProxy
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照

WebProxy コンストラクタ (Uri, Boolean)

Uri インスタンスとバイパス設定を使用して、WebProxy クラスの新しいインスタンスを初期化します。

名前空間: System.Net
アセンブリ: System (system.dll 内)
構文構文

Public Sub New ( _
    Address As Uri, _
    BypassOnLocal As Boolean _
)
Dim Address As Uri
Dim BypassOnLocal As Boolean

Dim instance As New WebProxy(Address,
 BypassOnLocal)
public WebProxy (
    Uri Address,
    bool BypassOnLocal
)
public:
WebProxy (
    Uri^ Address, 
    bool BypassOnLocal
)
public WebProxy (
    Uri Address, 
    boolean BypassOnLocal
)
public function WebProxy (
    Address : Uri, 
    BypassOnLocal : boolean
)

パラメータ

Address

プロキシ サーバーのアドレスを格納している Uri インスタンス。

BypassOnLocal

ローカル アドレスのプロキシをバイパスする場合は true。それ以外の場合は false。

解説解説
使用例使用例

このコンストラクタを呼び出すコード例を次に示します。

public static WebProxy CreateProxyWithExampleAddress(bool
 bypassLocal)
{
    return new WebProxy(new
 Uri("http://contoso"), bypassLocal);
}
WebProxy^ CreateProxyWithExampleAddress( bool bypassLocal )
{
   return gcnew WebProxy( gcnew Uri( "http://contoso"
 ), bypassLocal );
}
public static WebProxy CreateProxyWithExampleAddress(boolean
 bypassLocal)
{
    return new WebProxy(new
 Uri("http://contoso"), bypassLocal);
} //CreateProxyWithExampleAddress
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照

WebProxy コンストラクタ (String, Int32)

指定したホストとポート番号を使用して、WebProxy クラスの新しいインスタンスを初期化します。

名前空間: System.Net
アセンブリ: System (system.dll 内)
構文構文

例外例外
例外の種類条件

UriFormatException

Host と Port の組み合わせによって形成される URI が有効な URI ではありません。

解説解説
使用例使用例

このコンストラクタを呼び出すコード例を次に示します。

public static WebProxy CreateProxyWithHostAndPort()
{
    return new WebProxy("http://contoso",
 80);
}
WebProxy^ CreateProxyWithHostAndPort()
{
   return gcnew WebProxy( "http://contoso",80
 );
}
public static WebProxy CreateProxyWithHostAndPort()
{
    return new WebProxy("http://contoso",
 80);
} //CreateProxyWithHostAndPort
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照

WebProxy コンストラクタ (Uri, Boolean, String[], ICredentials)

指定した Uri インスタンス、バイパス設定、バイパスする URI の一覧、および資格情報を使用して、WebProxy クラスの新しいインスタンスを初期化します。

名前空間: System.Net
アセンブリ: System (system.dll 内)
構文構文

Public Sub New ( _
    Address As Uri, _
    BypassOnLocal As Boolean, _
    BypassList As String(), _
    Credentials As ICredentials _
)
Dim Address As Uri
Dim BypassOnLocal As Boolean
Dim BypassList As String()
Dim Credentials As ICredentials

Dim instance As New WebProxy(Address,
 BypassOnLocal, BypassList, Credentials)
public WebProxy (
    Uri Address,
    bool BypassOnLocal,
    string[] BypassList,
    ICredentials Credentials
)
public:
WebProxy (
    Uri^ Address, 
    bool BypassOnLocal, 
    array<String^>^ BypassList, 
    ICredentials^ Credentials
)
public WebProxy (
    Uri Address, 
    boolean BypassOnLocal, 
    String[] BypassList, 
    ICredentials Credentials
)
public function WebProxy (
    Address : Uri, 
    BypassOnLocal : boolean, 
    BypassList : String[], 
    Credentials : ICredentials
)

パラメータ

Address

プロキシ サーバーのアドレスを格納している Uri インスタンス。

BypassOnLocal

ローカル アドレスのプロキシをバイパスする場合は true。それ以外の場合は false。

BypassList

バイパスするサーバーの URI を含む正規表現文字列の配列。

Credentials

認証用にプロキシ サーバーに送信する ICredentials インスタンス。

解説解説
使用例使用例

このコンストラクタを呼び出すコード例を次に示します。

public static WebProxy CreateProxyWithCredentials2(bool
 bypassLocal)
{
    // Do not use the proxy server for Contoso.com URIs.
    string[] bypassList = new string[]{";*.Contoso.com"};
    return new WebProxy(new
 Uri("http://contoso"), 
        bypassLocal, 
        bypassList,
        CredentialCache.DefaultCredentials);
}
WebProxy^ CreateProxyWithCredentials2( bool bypassLocal )
{
   
   // Do not use the proxy server for Contoso.com URIs.
   array<String^>^ bypassList = {";*.Contoso.com"};
   return gcnew WebProxy( gcnew Uri( "http://contoso"
 ),
      bypassLocal,
      bypassList,
      CredentialCache::DefaultCredentials );
}
public static WebProxy CreateProxyWithCredentials2(boolean
 bypassLocal)
{
    // Do not use the proxy server for Contoso.com URIs.
    String bypassList[] = new String[] { ";*.Contoso.com"
 };
    return new WebProxy(new
 Uri("http://contoso"), bypassLocal, 
        bypassList, CredentialCache.get_DefaultCredentials());
} //CreateProxyWithCredentials2
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照

WebProxy コンストラクタ (String, Boolean)

指定した URI とバイパス設定を使用して、WebProxy クラスの新しいインスタンスを初期化します。

名前空間: System.Net
アセンブリ: System (system.dll 内)
構文構文

Public Sub New ( _
    Address As String, _
    BypassOnLocal As Boolean _
)
Dim Address As String
Dim BypassOnLocal As Boolean

Dim instance As New WebProxy(Address,
 BypassOnLocal)
public WebProxy (
    string Address,
    bool BypassOnLocal
)
public:
WebProxy (
    String^ Address, 
    bool BypassOnLocal
)
public WebProxy (
    String Address, 
    boolean BypassOnLocal
)
public function WebProxy (
    Address : String, 
    BypassOnLocal : boolean
)

パラメータ

Address

プロキシ サーバーの URI。

BypassOnLocal

ローカル アドレスのプロキシをバイパスする場合は true。それ以外の場合は false。

例外例外
例外の種類条件

UriFormatException

Address が無効な URI です。

解説解説
使用例使用例

このコンストラクタを呼び出すコード例を次に示します。

public static WebProxy CreateProxyWithHostAddress(bool
 bypassLocal)
{
    WebProxy proxy =  new WebProxy("http://contoso",
 bypassLocal);
    Console.WriteLine("Bypass proxy for local URIs?: {0}",
 
       proxy.BypassProxyOnLocal);
    return proxy;
}
WebProxy^ CreateProxyWithHostAddress( bool bypassLocal )
{
   WebProxy^ proxy = gcnew WebProxy( "http://contoso",bypassLocal
 );
   Console::WriteLine( "Bypass proxy for local URIs?: {0}",
 
      proxy->BypassProxyOnLocal );
   return proxy;
}
public static WebProxy CreateProxyWithHostAddress(boolean
 bypassLocal)
{
    WebProxy proxy = new WebProxy("http://contoso",
 bypassLocal);
    Console.WriteLine("Bypass proxy for local URIs?: {0}",
 
        (System.Boolean)proxy.get_BypassProxyOnLocal());
    return proxy;
} //CreateProxyWithHostAddress
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
WebProxy クラス
WebProxy メンバ
System.Net 名前空間
BypassProxyOnLocal

WebProxy コンストラクタ (SerializationInfo, StreamingContext)

既にシリアル化されたコンテンツを使用して、WebProxy クラスのインスタンスを初期化します。

名前空間: System.Net
アセンブリ: System (system.dll 内)
構文構文

Protected Sub New ( _
    serializationInfo As SerializationInfo, _
    streamingContext As StreamingContext _
)
Dim serializationInfo As SerializationInfo
Dim streamingContext As StreamingContext

Dim instance As New WebProxy(serializationInfo,
 streamingContext)
protected WebProxy (
    SerializationInfo serializationInfo,
    StreamingContext streamingContext
)
protected:
WebProxy (
    SerializationInfo^ serializationInfo, 
    StreamingContext streamingContext
)
protected WebProxy (
    SerializationInfo serializationInfo, 
    StreamingContext streamingContext
)
protected function WebProxy (
    serializationInfo : SerializationInfo, 
    streamingContext : StreamingContext
)

パラメータ

serializationInfo

シリアル化データ。

streamingContext

シリアル化されたデータのコンテキスト。

解説解説
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照

WebProxy コンストラクタ (Uri, Boolean, String[])

指定した Uri インスタンス、バイパス設定、およびバイパスする URI の一覧を使用して、WebProxy クラスの新しいインスタンスを初期化します。

名前空間: System.Net
アセンブリ: System (system.dll 内)
構文構文

Public Sub New ( _
    Address As Uri, _
    BypassOnLocal As Boolean, _
    BypassList As String() _
)
Dim Address As Uri
Dim BypassOnLocal As Boolean
Dim BypassList As String()

Dim instance As New WebProxy(Address,
 BypassOnLocal, BypassList)
public WebProxy (
    Uri Address,
    bool BypassOnLocal,
    string[] BypassList
)
public:
WebProxy (
    Uri^ Address, 
    bool BypassOnLocal, 
    array<String^>^ BypassList
)
public WebProxy (
    Uri Address, 
    boolean BypassOnLocal, 
    String[] BypassList
)
public function WebProxy (
    Address : Uri, 
    BypassOnLocal : boolean, 
    BypassList : String[]
)

パラメータ

Address

プロキシ サーバーのアドレスを格納している Uri インスタンス。

BypassOnLocal

ローカル アドレスのプロキシをバイパスする場合は true。それ以外の場合は false。

BypassList

バイパスするサーバーの URI を含む正規表現文字列の配列。

解説解説

Address プロパティを Address に設定し、BypassProxyOnLocal プロパティを BypassOnLocal に設定し、BypassList プロパティを BypassList に設定して、WebProxy インスタンスを初期化します。

使用例使用例

このコンストラクタを呼び出すコード例を次に示します。

public static WebProxy CreateProxyWithBypassList(bool
 bypassLocal)
{
    // Do not use the proxy server for Contoso.com URIs.
    string[] bypassList = new string[]{";*.Contoso.com"};
    return new WebProxy(new
 Uri("http://contoso"), 
        bypassLocal, 
        bypassList);
}
WebProxy^ CreateProxyWithBypassList( bool bypassLocal )
{
   // Do not use the proxy server for Contoso.com URIs.
   array<String^>^ bypassList = {";*.Contoso.com"};
   return gcnew WebProxy( gcnew Uri( "http://contoso"
 ),
      bypassLocal,
      bypassList );
}
public static WebProxy CreateProxyWithBypassList(boolean
 bypassLocal)
{
    // Do not use the proxy server for Contoso.com URIs.
    String bypassList[] = new String[] { ";*.Contoso.com"
 };
    return new WebProxy(new
 Uri("http://contoso"), bypassLocal, bypassList);
} //CreateProxyWithBypassList
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照

WebProxy コンストラクタ (Uri)

指定した Uri インスタンスから WebProxy クラスの新しいインスタンスを初期化します。

名前空間: System.Net
アセンブリ: System (system.dll 内)
構文構文

解説解説
使用例使用例

このコンストラクタを呼び出すコード例を次に示します。

public static WebProxy CreateProxyWithExampleAddress()
{
    return new WebProxy(new
 Uri("http://contoso"));
}
WebProxy^ CreateProxyWithExampleAddress()
{
   return gcnew WebProxy( gcnew Uri( "http://contoso"
 ) );
}
public static WebProxy CreateProxyWithExampleAddress()
{
    return new WebProxy(new
 Uri("http://contoso"));
} //CreateProxyWithExampleAddress
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照

WebProxy コンストラクタ (String)

指定した URI を使用して、WebProxy クラスの新しいインスタンスを初期化します。

名前空間: System.Net
アセンブリ: System (system.dll 内)
構文構文

例外例外
例外の種類条件

UriFormatException

Address が無効な URI です。

解説解説
使用例使用例

このコンストラクタを呼び出すコード例を次に示します。

public static WebProxy CreateProxyWithHost()
{
    return new WebProxy("http://contoso");
}
WebProxy^ CreateProxyWithHost()
{
   return gcnew WebProxy( "http://contoso"
 );
}
public static WebProxy CreateProxyWithHost()
{
    return new WebProxy("http://contoso");
} //CreateProxyWithHost
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照

WebProxy コンストラクタ (String, Boolean, String[])

指定した URI、バイパス設定、およびバイパスする URI の一覧を使用して、WebProxy クラスの新しいインスタンスを初期化します。

名前空間: System.Net
アセンブリ: System (system.dll 内)
構文構文

Public Sub New ( _
    Address As String, _
    BypassOnLocal As Boolean, _
    BypassList As String() _
)
Dim Address As String
Dim BypassOnLocal As Boolean
Dim BypassList As String()

Dim instance As New WebProxy(Address,
 BypassOnLocal, BypassList)
public WebProxy (
    string Address,
    bool BypassOnLocal,
    string[] BypassList
)
public:
WebProxy (
    String^ Address, 
    bool BypassOnLocal, 
    array<String^>^ BypassList
)
public WebProxy (
    String Address, 
    boolean BypassOnLocal, 
    String[] BypassList
)
public function WebProxy (
    Address : String, 
    BypassOnLocal : boolean, 
    BypassList : String[]
)

パラメータ

Address

プロキシ サーバーの URI。

BypassOnLocal

ローカル アドレスのプロキシをバイパスする場合は true。それ以外の場合は false。

BypassList

バイパスするサーバーの URI を含む正規表現文字列の配列。

例外例外
例外の種類条件

UriFormatException

Address が無効な URI です。

解説解説

Address プロパティを Address が格納された Uri インスタンスに設定し、BypassProxyOnLocal プロパティを BypassOnLocal に設定し、BypassList プロパティを BypassList に設定して、WebProxy インスタンスを初期化します。

使用例使用例

このコンストラクタを呼び出すコード例を次に示します。

public static WebProxy CreateProxyWithHostAndBypassList(bool
 bypassLocal)
{
    // Do not use the proxy server for Contoso.com URIs.
    string[] bypassList = new string[]{";*.Contoso.com"};
    return new WebProxy("http://contoso",
 
        bypassLocal, 
        bypassList);
}
WebProxy^ CreateProxyWithHostAndBypassList( bool bypassLocal )
{
   // Do not use the proxy server for Contoso.com URIs.
   array<String^>^ bypassList = {";*.Contoso.com"};
   return gcnew WebProxy( "http://contoso"
,
      bypassLocal,
      bypassList );
}
public static WebProxy CreateProxyWithHostAndBypassList(boolean
 bypassLocal)
{
    // Do not use the proxy server for Contoso.com URIs.
    String bypassList[] = new String[] { ";*.Contoso.com"
 };
    return new WebProxy("http://contoso",
 bypassLocal, bypassList);
} //CreateProxyWithHostAndBypassList
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
WebProxy クラス
WebProxy メンバ
System.Net 名前空間
BypassProxyOnLocal
BypassList

WebProxy コンストラクタ (String, Boolean, String[], ICredentials)

指定した URI、バイパス設定、バイパスする URI の一覧、および資格情報を使用して、WebProxy クラスの新しいインスタンスを初期化します。

名前空間: System.Net
アセンブリ: System (system.dll 内)
構文構文

Public Sub New ( _
    Address As String, _
    BypassOnLocal As Boolean, _
    BypassList As String(), _
    Credentials As ICredentials _
)
Dim Address As String
Dim BypassOnLocal As Boolean
Dim BypassList As String()
Dim Credentials As ICredentials

Dim instance As New WebProxy(Address,
 BypassOnLocal, BypassList, Credentials)
public WebProxy (
    string Address,
    bool BypassOnLocal,
    string[] BypassList,
    ICredentials Credentials
)
public:
WebProxy (
    String^ Address, 
    bool BypassOnLocal, 
    array<String^>^ BypassList, 
    ICredentials^ Credentials
)
public WebProxy (
    String Address, 
    boolean BypassOnLocal, 
    String[] BypassList, 
    ICredentials Credentials
)
public function WebProxy (
    Address : String, 
    BypassOnLocal : boolean, 
    BypassList : String[], 
    Credentials : ICredentials
)

パラメータ

Address

プロキシ サーバーの URI。

BypassOnLocal

ローカル アドレスのプロキシをバイパスする場合は true。それ以外の場合は false。

BypassList

バイパスするサーバーの URI を含む正規表現文字列の配列。

Credentials

認証用にプロキシ サーバーに送信する ICredentials インスタンス。

例外例外
例外の種類条件

UriFormatException

Address が無効な URI です。

解説解説
使用例使用例

このコンストラクタを呼び出すコード例を次に示します。

public static WebProxy CreateProxyWithCredentials(bool
 bypassLocal)
{
    // Do not use the proxy server for Contoso.com URIs.
    string[] bypassList = new string[]{";*.Contoso.com"};
    return new WebProxy("http://contoso",
 
        bypassLocal, 
        bypassList,
        CredentialCache.DefaultCredentials);
}
WebProxy^ CreateProxyWithCredentials( bool bypassLocal )
{
   // Do not use the proxy server for Contoso.com URIs.
   array<String^>^ bypassList = {";*.Contoso.com"};
   return gcnew WebProxy( "http://contoso"
,
      bypassLocal,
      bypassList,
      CredentialCache::DefaultCredentials );
}
public static WebProxy CreateProxyWithCredentials(boolean
 bypassLocal)
{
    // Do not use the proxy server for Contoso.com URIs.
    String bypassList[] = new String[] { ";*.Contoso.com"
 };
    return new WebProxy("http://contoso",
 bypassLocal, bypassList, 
        CredentialCache.get_DefaultCredentials());
} //CreateProxyWithCredentials
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
WebProxy クラス
WebProxy メンバ
System.Net 名前空間
BypassProxyOnLocal
BypassList

WebProxy コンストラクタ

WebProxy クラスの新しいインスタンスを初期化します。
オーバーロードの一覧オーバーロードの一覧

名前 説明
WebProxy () WebProxy クラスの空のインスタンスを初期化します。

.NET Compact Framework によってサポートされています。

WebProxy (String) 指定した URI を使用して、WebProxy クラスの新しいインスタンスを初期化します。

.NET Compact Framework によってサポートされています。

WebProxy (Uri) 指定した Uri インスタンスから WebProxy クラスの新しいインスタンスを初期化します。

.NET Compact Framework によってサポートされています。

WebProxy (SerializationInfo, StreamingContext) 既にシリアル化されたコンテンツを使用して、WebProxy クラスのインスタンスを初期化します。
WebProxy (String, Boolean) 指定した URI とバイパス設定を使用して、WebProxy クラスの新しいインスタンスを初期化します。

.NET Compact Framework によってサポートされています。

WebProxy (String, Int32) 指定したホストとポート番号を使用して、WebProxy クラスの新しいインスタンスを初期化します。

.NET Compact Framework によってサポートされています。

WebProxy (Uri, Boolean) Uri インスタンスとバイパス設定を使用して、WebProxy クラスの新しいインスタンスを初期化します。

.NET Compact Framework によってサポートされています。

WebProxy (String, Boolean, String[]) 指定した URI、バイパス設定、およびバイパスする URI の一覧を使用して、WebProxy クラスの新しいインスタンスを初期化します。
WebProxy (Uri, Boolean, String[]) 指定した Uri インスタンス、バイパス設定、およびバイパスする URI の一覧を使用して、WebProxy クラスの新しいインスタンスを初期化します。
WebProxy (String, Boolean, String[], ICredentials) 指定した URI、バイパス設定、バイパスする URI の一覧、および資格情報を使用して、WebProxy クラスの新しいインスタンスを初期化します。
WebProxy (Uri, Boolean, String[], ICredentials) 指定した Uri インスタンス、バイパス設定、バイパスする URI の一覧、および資格情報を使用して、WebProxy クラスの新しいインスタンスを初期化します。
参照参照

関連項目

WebProxy クラス
WebProxy メンバ
System.Net 名前空間

WebProxy プロパティ


WebProxy メソッド


パブリック メソッドパブリック メソッド

プロテクト メソッドプロテクト メソッド
明示的インターフェイスの実装明示的インターフェイスの実装
  名前 説明
インターフェイスの明示的な実装 System.Runtime.Serialization.ISerializable.GetObjectData WebProxy オブジェクトをシリアル化するためにシステムによって使用されるシリアル化データとコンテキストを作成します。
参照参照

関連項目

WebProxy クラス
System.Net 名前空間

WebProxy メンバ

WebRequest クラスの HTTP プロキシ設定を格納します。

WebProxy データ型で公開されるメンバを以下の表に示します。


パブリック コンストラクタパブリック コンストラクタ
プロテクト コンストラクタプロテクト コンストラクタ
パブリック プロパティパブリック プロパティ
パブリック メソッドパブリック メソッド
プロテクト メソッドプロテクト メソッド
明示的インターフェイスの実装明示的インターフェイスの実装
  名前 説明
インターフェイスの明示的な実装 System.Runtime.Serialization.ISerializable.GetObjectData WebProxy オブジェクトをシリアル化するためにシステムによって使用されるシリアル化データとコンテキストを作成します。
参照参照

関連項目

WebProxy クラス
System.Net 名前空間



英和和英テキスト翻訳

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

辞書ショートカット

すべての辞書の索引

「WebProxy」の関連用語

WebProxyのお隣キーワード
検索ランキング

   

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



WebProxyのページの著作権

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

©2026 GRAS Group, Inc.RSS