WebProxy.BypassList 属性   
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
获取或设置一个地址数组,这些地址不使用代理服务器。
public:
 property cli::array <System::String ^> ^ BypassList { cli::array <System::String ^> ^ get(); void set(cli::array <System::String ^> ^ value); };public string[] BypassList { get; set; }member this.BypassList : string[] with get, setPublic Property BypassList As String()属性值
		String[]
		
	
	包含描述 URI 的正则表达式列表的数组,这些 URI 在被访问时不使用代理服务器。
示例
下面的代码示例显示 对象的属性 WebProxy ,包括其 BypassList 属性。
// The following method displays the properties of the
// specified WebProxy instance.
public static void DisplayProxyProperties(WebProxy proxy)
{
    Console.WriteLine("Address: {0}", proxy.Address);
    Console.WriteLine( "Bypass on local: {0}", proxy.BypassProxyOnLocal );
    int count = proxy.BypassList.Length;
    if (count == 0)
    {
        Console.WriteLine("The bypass list is empty.");
        return;
    }
    string[] bypass = proxy.BypassList;
    Console.WriteLine("The bypass list contents:");
    for (int i=0; i< count; i++)
    {
        Console.WriteLine(bypass[i]);
    }
}
注解
属性 BypassList 包含一个正则表达式数组,这些正则表达式描述直接而不是通过代理服务器访问的 URI。