ServicePoint.Address 屬性

定義

取得這個 ServicePoint 物件連接之伺服器的統一資源識別碼 (URI)。

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

屬性值

Uri

Uri 類別的執行個體,包含這個 ServicePoint 物件連接之網際網路伺服器的 URI。

例外狀況

ServicePoint 處於主機模式中。

範例

下列程式碼範例會顯示這個屬性的值。

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

適用於