TcpTransportElement.PortSharingEnabled Eigenschaft

Definition

Dient zum Abrufen oder Festlegen eines Werts, der angibt, ob die TCP-Portfreigabe für diese Verbindung aktiviert ist.

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

Eigenschaftswert

true wenn die TCP-Portfreigabe aktiviert ist; false wenn jede Bindung einen eigenen exklusiven Port verwendet. Der Standardwert ist false.

Attribute

Hinweise

Diese Einstellung ist nur für Dienste relevant. Clients sind nicht betroffen.

Wenn Sie diese Einstellung verwenden, muss der TCP-Portfreigabedienst für Windows Communication Foundation (WCF) aktiviert werden, indem der Starttyp manuell oder automatisch geändert wird.

Weitere Informationen zum TCP-Listener und zum Starten finden Sie unter TcpListener.

Gilt für: