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