This documentation is archived and is not being maintained.

ContractDescription.ProtectionLevel Property

Gets or sets the level of security protection associated with the contract.

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

public ProtectionLevel ProtectionLevel { get; set; }
/** @property */
public ProtectionLevel get_ProtectionLevel ()

/** @property */
public void set_ProtectionLevel (ProtectionLevel value)

public function get ProtectionLevel () : ProtectionLevel

public function set ProtectionLevel (value : ProtectionLevel)

Not applicable.

Property Value

The ProtectionLevel for the operation.

When the ProtectionLevel is set, the HasProtectionLevel property is set to true.

ProtectionLevel protectionLevel = cd.ProtectionLevel;
Console.WriteLine("\tProtection Level: {0}", protectionLevel.ToString());

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