Bewerken

Delen via


ContextBindingElement Constructors

Definition

Initializes a new instance of the ContextBindingElement class.

Overloads

ContextBindingElement()

Initializes a new instance of the ContextBindingElement class.

ContextBindingElement(ProtectionLevel)

Initializes a new instance of the ContextBindingElement class with a specified level of protection.

ContextBindingElement(ProtectionLevel, ContextExchangeMechanism)

Initializes a new instance of the ContextBindingElement class with a specified level of protection and exchange mechanism.

ContextBindingElement(ProtectionLevel, ContextExchangeMechanism, Uri)

Initializes a new instance of the ContextBindingElement class with the specified protection level, context exchange mechanism, and client callback address.

ContextBindingElement(ProtectionLevel, ContextExchangeMechanism, Uri, Boolean)

Initializes a new instance of the ContextBindingElement class with the specified protection level, context exchange mechanism, client callback address, and a value that specifies whether context management is enabled.

ContextBindingElement()

Initializes a new instance of the ContextBindingElement class.

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

Remarks

Sets the default values of Sign for ProtectionLevel and ContextSoapHeader for ContextExchangeMechanism.

Applies to

ContextBindingElement(ProtectionLevel)

Initializes a new instance of the ContextBindingElement class with a specified level of protection.

public:
 ContextBindingElement(System::Net::Security::ProtectionLevel protectionLevel);
public ContextBindingElement (System.Net.Security.ProtectionLevel protectionLevel);
new System.ServiceModel.Channels.ContextBindingElement : System.Net.Security.ProtectionLevel -> System.ServiceModel.Channels.ContextBindingElement
Public Sub New (protectionLevel As ProtectionLevel)

Parameters

protectionLevel
ProtectionLevel

The ProtectionLevel for the binding element.

Exceptions

The protectionLevel is not valid.

Remarks

Sets the default value of ContextSoapHeader for ContextExchangeMechanism.

Applies to

ContextBindingElement(ProtectionLevel, ContextExchangeMechanism)

Initializes a new instance of the ContextBindingElement class with a specified level of protection and exchange mechanism.

public:
 ContextBindingElement(System::Net::Security::ProtectionLevel protectionLevel, System::ServiceModel::Channels::ContextExchangeMechanism contextExchangeMechanism);
public ContextBindingElement (System.Net.Security.ProtectionLevel protectionLevel, System.ServiceModel.Channels.ContextExchangeMechanism contextExchangeMechanism);
new System.ServiceModel.Channels.ContextBindingElement : System.Net.Security.ProtectionLevel * System.ServiceModel.Channels.ContextExchangeMechanism -> System.ServiceModel.Channels.ContextBindingElement
Public Sub New (protectionLevel As ProtectionLevel, contextExchangeMechanism As ContextExchangeMechanism)

Parameters

protectionLevel
ProtectionLevel

The ProtectionLevel for the binding element.

contextExchangeMechanism
ContextExchangeMechanism

The ContextExchangeMechanism that specifies the mechanism used to exchange context for the binding element.

Exceptions

protectionLevel or contextExchangeMechanism is not valid.

Applies to

ContextBindingElement(ProtectionLevel, ContextExchangeMechanism, Uri)

Initializes a new instance of the ContextBindingElement class with the specified protection level, context exchange mechanism, and client callback address.

public:
 ContextBindingElement(System::Net::Security::ProtectionLevel protectionLevel, System::ServiceModel::Channels::ContextExchangeMechanism contextExchangeMechanism, Uri ^ clientCallbackAddress);
public ContextBindingElement (System.Net.Security.ProtectionLevel protectionLevel, System.ServiceModel.Channels.ContextExchangeMechanism contextExchangeMechanism, Uri clientCallbackAddress);
new System.ServiceModel.Channels.ContextBindingElement : System.Net.Security.ProtectionLevel * System.ServiceModel.Channels.ContextExchangeMechanism * Uri -> System.ServiceModel.Channels.ContextBindingElement
Public Sub New (protectionLevel As ProtectionLevel, contextExchangeMechanism As ContextExchangeMechanism, clientCallbackAddress As Uri)

Parameters

protectionLevel
ProtectionLevel

The protection level form the binding element.

contextExchangeMechanism
ContextExchangeMechanism

The mechanism used to exchange context for the binding element.

clientCallbackAddress
Uri

The client callback address.

Applies to

ContextBindingElement(ProtectionLevel, ContextExchangeMechanism, Uri, Boolean)

Initializes a new instance of the ContextBindingElement class with the specified protection level, context exchange mechanism, client callback address, and a value that specifies whether context management is enabled.

public:
 ContextBindingElement(System::Net::Security::ProtectionLevel protectionLevel, System::ServiceModel::Channels::ContextExchangeMechanism contextExchangeMechanism, Uri ^ clientCallbackAddress, bool contextManagementEnabled);
public ContextBindingElement (System.Net.Security.ProtectionLevel protectionLevel, System.ServiceModel.Channels.ContextExchangeMechanism contextExchangeMechanism, Uri clientCallbackAddress, bool contextManagementEnabled);
new System.ServiceModel.Channels.ContextBindingElement : System.Net.Security.ProtectionLevel * System.ServiceModel.Channels.ContextExchangeMechanism * Uri * bool -> System.ServiceModel.Channels.ContextBindingElement
Public Sub New (protectionLevel As ProtectionLevel, contextExchangeMechanism As ContextExchangeMechanism, clientCallbackAddress As Uri, contextManagementEnabled As Boolean)

Parameters

protectionLevel
ProtectionLevel

The protection level for the binding element.

contextExchangeMechanism
ContextExchangeMechanism

The mechanism used to exchange context for the binding element.

clientCallbackAddress
Uri

The client callback address.

contextManagementEnabled
Boolean

true if the context management is enabled; otherwise false.

Applies to