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

GlobalProxySelection クラス

メモ : このクラスは、互換性のために残されています。

すべての HTTP 要求グローバルな既定プロキシ インスタンス格納します

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

<ObsoleteAttribute("This class has been deprecated. Please
 use WebRequest.DefaultWebProxy instead to access and
 set the global default proxy. Use 'null' instead of GetEmptyWebProxy. http://go.microsoft.com/fwlink/?linkid=14202")>
 _
Public Class GlobalProxySelection
Dim instance As GlobalProxySelection
[ObsoleteAttribute("This class has been deprecated. Please
 use WebRequest.DefaultWebProxy instead to access and set the
 global default proxy. Use \'null\' instead of GetEmptyWebProxy. http://go.microsoft.com/fwlink/?linkid=14202")]
 
public class GlobalProxySelection
[ObsoleteAttribute(L"This class has been deprecated. Please
 use WebRequest.DefaultWebProxy instead to access and set the
 global default proxy. Use \'null\' instead of GetEmptyWebProxy. http://go.microsoft.com/fwlink/?linkid=14202")]
 
public ref class GlobalProxySelection
/** @attribute ObsoleteAttribute("This class has been deprecated.
 Please use WebRequest.DefaultWebProxy instead to access and set
 the global default proxy. Use \'null\' instead of GetEmptyWebProxy. http://go.microsoft.com/fwlink/?linkid=14202")
 */ 
public class GlobalProxySelection
ObsoleteAttribute("This class has been deprecated. Please
 use WebRequest.DefaultWebProxy instead to access and set the
 global default proxy. Use \u0027null\u0027 instead of GetEmptyWebProxy. http://go.microsoft.com/fwlink/?linkid=14202") 
public class GlobalProxySelection
解説解説

GlobalProxySelection は、WebRequest インスタンスローカル ネットワーク越えインターネット サイトとの通信使用する既定プロキシプロキシ設定格納します既定プロキシ設定は、グローバル構成ファイルまたはアプリケーション構成ファイルから初期化され、個別要求に対してオーバーライドしたり、HttpWebRequest.Proxy プロパティを GetEmptyWebProxy メソッド結果設定して無効にしたりできます

GlobalProxySelection格納されるプロキシ設定は、プロキシサポートしていて、Proxy プロパティ値が null 参照 (Visual Basic では Nothing) (既定値) に設定されているすべての WebRequest 派生オブジェクト使用されます。現在、プロキシは FtpWebRequest、HttpWebRequest、および WebClient でサポートされています。

メモ :   要求行った後に GlobalProxySelection変更しても、WebRequest には反映されません。

使用例使用例

"webproxy" という名前の HTTP プロキシに対してポート 80GlobalProxySelection設定するコード例次に示します

Dim proxyURI As New Uri("http://webproxy:80")
GlobalProxySelection.Select = New WebProxy(proxyURI)
Uri proxyURI = new Uri("http://webproxy:80");
 GlobalProxySelection.Select = new WebProxy(proxyURI);

Uri^ proxyURI = gcnew Uri( "http://webproxy:80" );
GlobalProxySelection::Select = gcnew WebProxy( proxyURI );
Uri proxyURI = new Uri("http://webproxy:80");
GlobalProxySelection.set_Select(new WebProxy(proxyURI));
継承階層継承階層
System.Object
  System.Net.GlobalProxySelection
スレッド セーフスレッド セーフ
この型の public static (Visual Basic では Shared) メンバはすべて、スレッド セーフです。インスタンス メンバ場合は、スレッド セーフであるとは限りません。
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照

GlobalProxySelection コンストラクタ


GlobalProxySelection プロパティ


パブリック プロパティパブリック プロパティ

参照参照

関連項目

GlobalProxySelection クラス
System.Net 名前空間

その他の技術情報

defaultProxy 要素 (ネットワーク設定)

GlobalProxySelection メソッド


GlobalProxySelection メンバ

すべての HTTP 要求グローバルな既定プロキシ インスタンス格納します

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


パブリック コンストラクタパブリック コンストラクタ
  名前 説明
パブリック メソッド GlobalProxySelection  
パブリック プロパティパブリック プロパティ
パブリック メソッドパブリック メソッド
プロテクト メソッドプロテクト メソッド
参照参照

関連項目

GlobalProxySelection クラス
System.Net 名前空間

その他の技術情報

defaultProxy 要素 (ネットワーク設定)



英和和英テキスト翻訳>> Weblio翻訳
英語⇒日本語日本語⇒英語
  

辞書ショートカット

すべての辞書の索引

「GlobalProxySelection」の関連用語

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

   

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



GlobalProxySelectionのページの著作権
Weblio 辞書 情報提供元は 参加元一覧 にて確認できます。

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

©2025 GRAS Group, Inc.RSS