WebProxy.BypassList Właściwość

Definicja

Pobiera lub ustawia tablicę adresów, które nie używają serwera proxy.

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()

Wartość właściwości

String[]

Tablica zawierająca listę wyrażeń regularnych opisujących identyfikatory URI, które nie używają serwera proxy podczas uzyskiwania dostępu.

Przykłady

Poniższy przykład kodu wyświetla właściwości WebProxy obiektu, w tym jego BypassList właściwość.

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

Uwagi

Właściwość BypassList zawiera tablicę wyrażeń regularnych opisujących identyfikatory URI, do WebRequest których wystąpienie uzyskuje dostęp bezpośrednio zamiast za pośrednictwem serwera proxy.

Dotyczy

Zobacz też