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 值時傳遞給屬性的值。

備註

如需保護層級及其假設和範圍的詳細資訊,請參閱 瞭解保護層級

適用於