共用方式為


EndpointAddress.NoneUri 屬性

定義

取得不得對其傳送訊息之端點位址所使用的中性版本 URI。

public:
 static property Uri ^ NoneUri { Uri ^ get(); };
public static Uri NoneUri { get; }
member this.NoneUri : Uri
Public Shared ReadOnly Property NoneUri As Uri

屬性值

Uri

Uri值為 的 http://schemas.microsoft.com/2005/12/ServiceModel/Addressing/None

範例

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.NoneUri;

備註

如果用於初始化建構函式之 URI 的值為 NoneUri,則 IsNone 會設定為 true

適用於