WebProxy.Address 속성

정의

프록시 서버의 주소를 가져오거나 설정합니다.

public:
 property Uri ^ Address { Uri ^ get(); void set(Uri ^ value); };
public Uri? Address { get; set; }
public Uri Address { get; set; }
member this.Address : Uri with get, set
Public Property Address As Uri

속성 값

Uri

프록시 서버의 주소를 포함하는 Uri 인스턴스입니다.

예제

다음 코드 예제를 포함 하 WebProxy 여 개체의 속성을 표시 합니다 Address.

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

설명

속성에는 Address 프록시 서버의 주소가 포함됩니다. 자동 프록시 검색을 사용하도록 설정하지 않고 자동 구성 스크립트가 지정되지 Address 않은 경우 속성 및 BypassList 는 요청에 사용되는 프록시를 결정합니다.

속성이 인 Address 경우 요청은 null프록시를 우회하고 대상 호스트에 직접 연결합니다.

적용 대상