WebProxy.BypassList Eigenschaft

Definition

Ruft ein Array von Adressen ab, bei denen der Proxyserver nicht verwendet wird, oder legt diese fest.

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

Eigenschaftswert

String[]

Ein Array mit der Liste aller regulären Ausdrücke, die URIs beschreiben, für deren Zugriff der Proxyserver nicht verwendet wird.

Beispiele

Im folgenden Codebeispiel werden die Eigenschaften eines WebProxy Objekts einschließlich seiner BypassList Eigenschaft angezeigt.

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

Hinweise

Die BypassList -Eigenschaft enthält ein Array regulärer Ausdrücke, die URIs beschreiben, auf die direkt statt über den Proxyserver zugegriffen wird.

Gilt für:

Weitere Informationen