語言

MessageContractAttribute.ProtectionLevel 屬性

定義

取得或設定一個值,指定訊息必須加密、簽署或同時進行。

public:
 property System::Net::Security::ProtectionLevel ProtectionLevel { System::Net::Security::ProtectionLevel get(); void set(System::Net::Security::ProtectionLevel value); };
public System.Net.Security.ProtectionLevel ProtectionLevel { get; set; }
member this.ProtectionLevel : System.Net.Security.ProtectionLevel with get, set
Public Property ProtectionLevel As ProtectionLevel

屬性值

這是其中一項 ProtectionLevel 價值。 預設值為 None。

例外狀況

當設定不是其中 ProtectionLevel 的值時,該值會傳給屬性。

備註

關於保護等級及其假設與範圍的詳細資訊,請參閱 「了解保護等級」。

適用於