ServicePoint.Address Vlastnost

Definice

Získá identifikátor URI (Uniform Resource Identifier) serveru, ke kterému se tento ServicePoint objekt připojuje.

public:
 property Uri ^ Address { Uri ^ get(); };
public Uri Address { get; }
member this.Address : Uri
Public ReadOnly Property Address As Uri

Hodnota vlastnosti

Uri

Instance Uri třídy, která obsahuje identifikátor URI internetového serveru, ke kterému se tento ServicePoint objekt připojuje.

Výjimky

Je ServicePoint v režimu hostitele.

Příklady

Následující příklad kódu zobrazí hodnotu této vlastnosti.

// Display the ServicePoint Internet resource address.
Console::WriteLine( "Address = {0}", sp->Address );
// Display the ServicePoint Internet resource address.
Console.WriteLine("Address = {0} ", sp.Address.ToString());
' Display the ServicePoint Internet resource address.
Console.WriteLine(("Address = " + sp.Address.ToString()))

Platí pro