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对象连接到的 Internet 服务器的 URI 的类的实例ServicePoint

例外

处于 ServicePoint 主机模式。

示例

下面的代码示例显示此属性的值。

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

适用于