Click to Rate and Give Feedback
MSDN
MSDN Library
.NET Development
.NET Framework 3.5
 ListenUriMode Enumeration

  Switch on low bandwidth view
This page is specific to
Microsoft Visual Studio 2008/.Net Framework 3.5

Other versions are also available for the following:
.NET Framework Class Library
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)
Visual Basic (Declaration)
Public Enumeration ListenUriMode
Visual Basic (Usage)
Dim instance As ListenUriMode
C#
public enum ListenUriMode
Visual C++
public enum class ListenUriMode
JScript
public enum ListenUriMode
Member nameDescription
Supported by the .NET Compact FrameworkExplicitUses 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 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 7, Windows Vista, Windows XP SP2, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003, Windows CE, Windows Mobile for Smartphone, Windows Mobile for Pocket PC

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

.NET Framework

Supported in: 3.5, 3.0

.NET Compact Framework

Supported in: 3.5
Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2009 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker