ServicePoint.Address 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得這個 ServicePoint 物件連接之伺服器的統一資源識別碼 (URI)。
public:
property Uri ^ Address { Uri ^ get(); };
public Uri Address { get; }
member this.Address : Uri
Public ReadOnly Property Address As 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()))