Επεξεργασία

Κοινή χρήση μέσω


NetTcpContextBinding Constructors

Definition

Initializes a new instance of the NetTcpContextBinding class.

Overloads

NetTcpContextBinding()

Initializes a new instance of the NetTcpContextBinding class.

NetTcpContextBinding(SecurityMode)

Initializes a new instance of the NetTcpContextBinding class with the specified SecurityMode.

NetTcpContextBinding(String)

Initializes a new instance of the NetTcpContextBinding class with the specified binding configuration.

NetTcpContextBinding(SecurityMode, Boolean)

Initializes a new instance of the NetTcpContextBinding class with the specified SecurityMode and reliable session setting.

NetTcpContextBinding()

Initializes a new instance of the NetTcpContextBinding class.

public:
 NetTcpContextBinding();
public NetTcpContextBinding ();
Public Sub New ()

Applies to

NetTcpContextBinding(SecurityMode)

Initializes a new instance of the NetTcpContextBinding class with the specified SecurityMode.

public:
 NetTcpContextBinding(System::ServiceModel::SecurityMode securityMode);
public NetTcpContextBinding (System.ServiceModel.SecurityMode securityMode);
new System.ServiceModel.NetTcpContextBinding : System.ServiceModel.SecurityMode -> System.ServiceModel.NetTcpContextBinding
Public Sub New (securityMode As SecurityMode)

Parameters

securityMode
SecurityMode

The security mode.

Applies to

NetTcpContextBinding(String)

Initializes a new instance of the NetTcpContextBinding class with the specified binding configuration.

public:
 NetTcpContextBinding(System::String ^ configName);
public NetTcpContextBinding (string configName);
new System.ServiceModel.NetTcpContextBinding : string -> System.ServiceModel.NetTcpContextBinding
Public Sub New (configName As String)

Parameters

configName
String

The name of the binding configuration.

Remarks

The configName parameter should be set to the name of the <binding> element in the configuration file that configures this binding.

Applies to

NetTcpContextBinding(SecurityMode, Boolean)

Initializes a new instance of the NetTcpContextBinding class with the specified SecurityMode and reliable session setting.

public:
 NetTcpContextBinding(System::ServiceModel::SecurityMode securityMode, bool reliableSessionEnabled);
public NetTcpContextBinding (System.ServiceModel.SecurityMode securityMode, bool reliableSessionEnabled);
new System.ServiceModel.NetTcpContextBinding : System.ServiceModel.SecurityMode * bool -> System.ServiceModel.NetTcpContextBinding
Public Sub New (securityMode As SecurityMode, reliableSessionEnabled As Boolean)

Parameters

securityMode
SecurityMode

The security mode.

reliableSessionEnabled
Boolean

true to enable reliable sessions; otherwise, false.

Applies to