NetTcpContextBindingElement.ContextProtectionLevel 属性

定义

获取或设置用于传播上下文信息的 SOAP 标头的所需保护级别。 默认值是 ProtectionLevel.Sign

public:
 property System::Net::Security::ProtectionLevel ContextProtectionLevel { System::Net::Security::ProtectionLevel get(); void set(System::Net::Security::ProtectionLevel value); };
[System.Configuration.ConfigurationProperty("contextProtectionLevel", DefaultValue=System.Net.Security.ProtectionLevel.Sign)]
public System.Net.Security.ProtectionLevel ContextProtectionLevel { get; set; }
[<System.Configuration.ConfigurationProperty("contextProtectionLevel", DefaultValue=System.Net.Security.ProtectionLevel.Sign)>]
member this.ContextProtectionLevel : System.Net.Security.ProtectionLevel with get, set
Public Property ContextProtectionLevel As ProtectionLevel

属性值

一个有效的 ProtectionLevel 值。

属性

适用于