WebProxy.GetDefaultProxy メソッド

定義

注意事項

This method has been deprecated. Please use the proxy selected for you by default. http://go.microsoft.com/fwlink/?linkid=14202

注意事項

This method has been deprecated. Please use the proxy selected for you by default. https://go.microsoft.com/fwlink/?linkid=14202

インターネット オプションの非動的プロキシ設定を読み取ります。

public:
 static System::Net::WebProxy ^ GetDefaultProxy();
public static System.Net.WebProxy GetDefaultProxy();
[System.Obsolete("This method has been deprecated. Please use the proxy selected for you by default. http://go.microsoft.com/fwlink/?linkid=14202")]
public static System.Net.WebProxy GetDefaultProxy();
[System.Obsolete("This method has been deprecated. Please use the proxy selected for you by default. https://go.microsoft.com/fwlink/?linkid=14202")]
public static System.Net.WebProxy GetDefaultProxy();
static member GetDefaultProxy : unit -> System.Net.WebProxy
[<System.Obsolete("This method has been deprecated. Please use the proxy selected for you by default. http://go.microsoft.com/fwlink/?linkid=14202")>]
static member GetDefaultProxy : unit -> System.Net.WebProxy
[<System.Obsolete("This method has been deprecated. Please use the proxy selected for you by default. https://go.microsoft.com/fwlink/?linkid=14202")>]
static member GetDefaultProxy : unit -> System.Net.WebProxy
Public Shared Function GetDefaultProxy () As WebProxy

返品

インターネット オプションの非動的プロキシ設定を含む WebProxy インスタンス。

属性

例外

注釈

GetDefaultProxy メソッドは、コンピューターのインターネット オプションから非動的プロキシ設定を読み取り、それらの設定を使用してWebProxy インスタンスを作成します。

GetDefaultProxy メソッドは、Internet Explorerによって実行されるスクリプト、自動構成エントリ、または DHCP または DNS 参照から生成される動的設定を取得しません。

アプリケーションでは、GetDefaultProxy メソッドの代わりに HttpClient.DefaultProxy プロパティを使用する必要があります。

Note

このプロパティは、.NET Core ではサポートされていません。

適用対象