EndpointAddress.NoneUri Egenskap

Definition

Hämtar en versionsneutral URI som används för adressen till en slutpunkt som ett meddelande inte får skickas till.

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

Egenskapsvärde

Uri

A Uri med värdet http://schemas.microsoft.com/2005/12/ServiceModel/Addressing/None.

Exempel

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;

Kommentarer

Om värdet för den URI som används för att initiera konstruktorn är NoneUri, anges värdet IsNone till true.

Gäller för