Lenguaje

TcpTransportElement.PortSharingEnabled Propiedad

Definición

Obtiene o establece un valor que especifica si el uso compartido de puertos TCP está habilitado para esta conexión.

public:
 property bool PortSharingEnabled { bool get(); void set(bool value); };
[System.Configuration.ConfigurationProperty("portSharingEnabled", DefaultValue=false)]
public bool PortSharingEnabled { get; set; }
[<System.Configuration.ConfigurationProperty("portSharingEnabled", DefaultValue=false)>]
member this.PortSharingEnabled : bool with get, set
Public Property PortSharingEnabled As Boolean

Valor de propiedad

true si el uso compartido de puertos TCP está habilitado; false si cada enlace usa su propio puerto exclusivo. El valor por defecto es false.

Atributos

Comentarios

Esta configuración solo es relevante para los servicios. Los clientes no se ven afectados.

El uso de esta configuración requiere habilitar el servicio de uso compartido de puertos TCP de Windows Communication Foundation (WCF) cambiando su tipo de inicio a Manual o Automático.

Para obtener más información sobre el agente de escucha TCP y cómo iniciarlo, consulte TcpListener.

Se aplica a