Uri Mode Enum
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.
public enum class ListenUriMode
public enum ListenUriMode
type ListenUriMode =
Public Enum ListenUriMode
Uses the ListenUri exactly as provided. This is the default value.
Specifies 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.
When the value of the ListenUriMode is set to Unique the transport is responsible for creating a unique URI. Different transports used by Windows Communication Foundation (WCF) generate this unique URI differently
For TCP in exclusive mode (PortSharingEnabled is
false) this means binding to a uniquely available port number.