WebProxy.GetDefaultProxy メソッド

定義

注意事項

WebProxy.GetDefaultProxy has been deprecated. Use the proxy selected for you by default.

注意事項

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

注意事項

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("WebProxy.GetDefaultProxy has been deprecated. Use the proxy selected for you by default.")]
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();
[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();
public static System.Net.WebProxy GetDefaultProxy();
[<System.Obsolete("WebProxy.GetDefaultProxy has been deprecated. Use the proxy selected for you by default.")>]
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
[<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
static member GetDefaultProxy : unit -> System.Net.WebProxy
Public Shared Function GetDefaultProxy () As WebProxy

返品

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

属性

例外

注釈

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

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

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

Note

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

適用対象