EndpointAddress.Uri 属性

定义

获取终结点的 URI。

public:
 property Uri ^ Uri { Uri ^ get(); };
public Uri Uri { get; }
[System.ComponentModel.TypeConverter(typeof(System.UriTypeConverter))]
public Uri Uri { get; }
member this.Uri : Uri
[<System.ComponentModel.TypeConverter(typeof(System.UriTypeConverter))>]
member this.Uri : Uri
Public ReadOnly Property Uri As Uri

属性值

Uri

终结点的 Uri

属性

示例

EndpointIdentity endpointIdentity =
    EndpointIdentity.CreateUpnIdentity(WindowsIdentity.GetCurrent().Name);
EndpointAddress endpointAddress = new EndpointAddress(
    new Uri
    ("http://localhost:8003/servicemodelsamples/service/incode/identity"),
    endpointIdentity, addressHeaders);

Uri nonUri = endpointAddress.Uri;

注解

URI 可标识发送消息的位置。 若要设置终结点地址的 URI,请使用 Uri

适用于