共用方式為


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 值。

屬性

適用於