ServicePoint.Address Właściwość

Definicja

Pobiera identyfikator URI (Uniform Resource Identifier) serwera, z którego ServicePoint ten obiekt nawiązuje połączenie.

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

Wartość właściwości

Uri

Wystąpienie Uri klasy zawierające identyfikator URI serwera internetowego, z którym łączy się ten ServicePoint obiekt.

Wyjątki

Element ServicePoint jest w trybie hosta.

Przykłady

Poniższy przykład kodu przedstawia wartość tej właściwości.

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

Dotyczy