Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

WSHttpSecurity.Mode Property

Definition

Namespace:
System.ServiceModel
Assemblies:
System.ServiceModel.dll, System.ServiceModel.Http.dll
Assembly:
System.ServiceModel.dll
Assembly:
System.ServiceModel.Http.dll
Packages:
System.ServiceModel.Http v10.0.652802, System.ServiceModel.Primitives v10.0.652802
Package:
System.ServiceModel.Http v10.0.652802
Source:
WSHttpSecurity.cs
Source:
WSHttpSecurity.cs
Source:
WSHttpSecurity.cs

Important

Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.

Specifies the message SecurityMode for this binding.

public:
 property System::ServiceModel::SecurityMode Mode { System::ServiceModel::SecurityMode get(); void set(System::ServiceModel::SecurityMode value); };
public System.ServiceModel.SecurityMode Mode { get; set; }
member this.Mode : System.ServiceModel.SecurityMode with get, set
Public Property Mode As SecurityMode

Property Value

The SecurityMode for this binding. The default is Message.

Exceptions

The value of the Mode set is not defined.

Examples

The following code sets this property.

WSHttpBinding myBinding = new WSHttpBinding();
myBinding.Security.Mode = SecurityMode.Message;

Remarks

This property determines whether the settings from the Transport and/or Message property buckets may or may not become effective.

Applies to


Feedback

Was this page helpful?