WebProxy.BypassList Özellik

Tanım

Ara sunucuyu kullanmayan bir adres dizisini alır veya ayarlar.

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, set
Public Property BypassList As String()

Özellik Değeri

String[]

Erişildiğinde ara sunucuyu kullanmayan URI'leri açıklayan normal ifadelerin listesini içeren dizi.

Örnekler

Aşağıdaki kod örneği, bir WebProxy nesnenin özelliği de dahil olmak üzere BypassList özelliklerini görüntüler.

// The following method displays the properties of the 
// specified WebProxy instance.
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;
   }

   array<String^>^bypass = proxy->BypassList;
   Console::WriteLine( "The bypass list contents:" );
   for ( int i = 0; i < count; i++ )
   {
      Console::WriteLine( bypass[ i ] );

   }
}
// 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]);
    }
}

Açıklamalar

özelliği, BypassList ara sunucu yerine doğrudan erişilen URI'leri açıklayan bir dizi normal ifade içerir.

Şunlara uygulanır

Ayrıca bkz.