Export (0) Print
Expand All
Expand Minimize
This topic has not yet been rated - Rate this topic

ListenUriMode Enumeration

Indicates whether the transport must ensure that the URI provided for the service to listen on is unique or can be used exactly as provided.

Namespace:  System.ServiceModel.Description
Assembly:  System.ServiceModel (in System.ServiceModel.dll)
'Declaration
Public Enumeration ListenUriMode
Member nameDescription
ExplicitUses the ListenUri exactly as provided. This is the default value.
UniqueSpecifies that the transport should use a transport-specific mechanism to ensure that the ListenUri is unique.

The URI for the endpoint on which a service listens can be set programmatically using the ListenUri property and the value of the ListenUriMode for that endpoint is set using the ListenUriMode property. The default value for ListenUri is Address. The default value for ListenUriMode is Explicit.

The value of these properties may also be set using the ListenUri property and the ListenUriMode property.

When the value of the ListenUriMode is set to Unique the transport is responsible for creating a unique URI. Different transports used by generate this unique URI differently

  • For TCP in exclusive mode (PortSharingEnabled is false) this means binding to a uniquely available port number.

  • For TCP in port sharing mode (PortSharingEnabled is true) and for all of the other existing transports, this means appending a unique path (a GUID) to the end of the ListenUri.

When the value of the ListenUriMode is set to Explicit mode, the transport uses the ListenUri exactly as it is provided, without modifying it to make it unique.

.NET Framework

Supported in: 4, 3.5, 3.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.