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 对象连接到的 Internet 服务器的 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()))

适用于