共用方式為


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

適用於