Export (0) Print
Expand All

WSHttpSecurity.Mode Property

Specifies the message SecurityMode for this binding.

Namespace: System.ServiceModel
Assembly: System.ServiceModel (in system.servicemodel.dll)

public SecurityMode Mode { get; set; }
/** @property */
public SecurityMode get_Mode ()

/** @property */
public void set_Mode (SecurityMode value)

public function get Mode () : SecurityMode

public function set Mode (value : SecurityMode)

Not applicable.

Property Value

The SecurityMode for this binding. The default is Message.

Exception typeCondition


The value of the Mode set is not defined.

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

The following code sets this property.

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

Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0

Community Additions

© 2014 Microsoft