ListenUriMode Enumeration
Assembly: System.ServiceModel (in system.servicemodel.dll)
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 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.
-
For TCP in port sharing mode (PortSharingEnabled is true) and for all of the other existing WCF 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.
Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.