Aracılığıyla paylaş


WebProxy.Address Özellik

Tanım

Ara sunucunun adresini alır veya ayarlar.

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

Özellik Değeri

Uri

Ara Uri sunucunun adresini içeren örnek.

Örnekler

Aşağıdaki kod örneği, bir WebProxy nesnenin özelliklerini ( dahil Address) görüntüler.

// 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

Address özelliği ara sunucunun adresini içerir. Otomatik ara sunucu algılama etkinleştirilmediğinde ve otomatik yapılandırma betiği belirtilmediğinde, Address özelliği ve BypassList istek için kullanılan proxy'yi belirler.

Address özelliği olduğunda nullistekler proxy'yi atlar ve doğrudan hedef konağa bağlanır.

Şunlara uygulanır