EndpointAddress.NoneUri Property

Definition

Gets a version-neutral URI used for the address of an endpoint to which a message must not be sent.

C#
public static Uri NoneUri { get; }

Property Value

Uri

A Uri with the value http://schemas.microsoft.com/2005/12/ServiceModel/Addressing/None.

Examples

C#
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;

Remarks

If the value of the URI used to initialize the constructor is the NoneUri, then IsNone is set to true.

Applies to

Product Versions
.NET Core 1.0, Core 1.1, 8 (package-provided), 9 (package-provided), 10 (package-provided)
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0 (package-provided)
UWP 10.0