TcpTransportElement.PortSharingEnabled Propriedade

Definição

Obtém ou define um valor que especifica se o compartilhamento de porta TCP está habilitado para esta conexão.Gets or sets a value that specifies whether TCP port sharing is enabled for this connection.

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

Valor da propriedade

Boolean

true Se o compartilhamento de porta TCP estiver habilitado; false se cada associação usar sua própria porta exclusiva.true if TCP port sharing is enabled; false if each binding uses its own exclusive port. O valor padrão é false.The default value is false.

Atributos

Comentários

Essa configuração é relevante apenas para serviços do.This setting is relevant only to services. Os clientes não são afetados.Clients are not affected.

O uso dessa configuração requer a habilitação do serviço de compartilhamento de porta TCP Windows Communication Foundation (WCF) alterando seu tipo de inicialização para manual ou automático.Using this setting requires enabling the Windows Communication Foundation (WCF) TCP Port Sharing Service by changing its Startup Type to Manual or Automatic.

Para obter mais informações sobre o ouvinte TCP e como iniciá-lo, consulte TcpListener .For more information about the TCP Listener and how to start it, see TcpListener.

Aplica-se a