WebProxy.IsBypassed メソッドとは? わかりやすく解説

Weblio 辞書 > コンピュータ > .NET Framework クラス ライブラリ リファレンス > WebProxy.IsBypassed メソッドの意味・解説 

WebProxy.IsBypassed メソッド

指定したホストプロキシ サーバー使用するかどうか示します

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

解説解説

IsBypassed メソッド使用してインターネット リソースアクセスする場合に、プロキシ サーバーバイパスするかどうか決めます

BypassProxyOnLocal プロパティと BypassList プロパティは、IsBypassed メソッド戻り値制御します

IsBypassed は、次のいずれか条件基づいて true返します

その他のすべての場合には、false返します

使用例使用例

WebProxy オブジェクト作成し、このメソッド呼び出してバイパス一覧正しく設定されているかどうか確認するコード例次に示します

public static WebProxy CreateProxyAndCheckBypass(bool
 bypassLocal)
{
    // Do not use the proxy server for Contoso.com URIs.
    string[] bypassList = new string[]{";*.Contoso.com"};
    WebProxy proxy =  new WebProxy("http://contoso",
 
        bypassLocal, 
        bypassList);
        
    // Test the bypass list.
    if (!proxy.IsBypassed(new Uri("http://www.Contoso.com")))
    {
        Console.WriteLine("Bypass not working!");
        return null;
    } 
    else 
    {
        Console.WriteLine("Bypass is working.");
        return proxy;
    }
}
WebProxy^ CreateProxyAndCheckBypass( bool bypassLocal )
{
   // Do not use the proxy server for Contoso.com URIs.
   array<String^>^ bypassList = {";*.Contoso.com"};
   WebProxy^ proxy = gcnew WebProxy( "http://contoso",
      bypassLocal,
      bypassList );
   
   // Test the bypass list.
   if (  !proxy->IsBypassed( gcnew Uri( "http://www.Contoso.com"
 ) ) )
   {
      Console::WriteLine( "Bypass not working!" );
      return nullptr;
   }
   else
   {
      Console::WriteLine( "Bypass is working." );
      return proxy;
   }
}
public static WebProxy CreateProxyAndCheckBypass(boolean
 bypassLocal)
{
    // Do not use the proxy server for Contoso.com URIs.
    String bypassList[] = new String[] { ";*.Contoso.com"
 };
    WebProxy proxy = new WebProxy("http://contoso"
,
        bypassLocal, bypassList);
    // Test the bypass list.
    if (!(proxy.IsBypassed(new Uri("http://www.Contoso.com"))))
 {
        Console.WriteLine("Bypass not working!");
        return null;
    }
    else {
        Console.WriteLine("Bypass is working.");
        return proxy;
    }
} //CreateProxyAndCheckBypass
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照


このページでは「.NET Framework クラス ライブラリ リファレンス」からWebProxy.IsBypassed メソッドを検索した結果を表示しています。
Weblioに収録されているすべての辞書からWebProxy.IsBypassed メソッドを検索する場合は、下記のリンクをクリックしてください。
 全ての辞書からWebProxy.IsBypassed メソッド を検索

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

辞書ショートカット

すべての辞書の索引

WebProxy.IsBypassed メソッドのお隣キーワード
検索ランキング

   

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



WebProxy.IsBypassed メソッドのページの著作権
Weblio 辞書 情報提供元は 参加元一覧 にて確認できます。

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

©2025 GRAS Group, Inc.RSS