NoneUri Property
Collapse the table of content
Expand the table of content

EndpointAddress.NoneUri Property

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

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

Namespace:  System.ServiceModel
Assembly:  System.ServiceModel (in System.ServiceModel.dll)

public static Uri NoneUri { get; }

Property Value

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

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


// Endpoint address with the none URI. 
Uri noneUri = EndpointAddress.NoneUri;
EndpointAddress noneUriEndpointAddress = new EndpointAddress(noneUri);

//Confirm the address is anonymous
bool boolNoneUri = noneUriEndpointAddress.IsNone;


Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2017 Microsoft