MessageContractAttribute.ProtectionLevel 屬性

定義

取得或設定值,這個值已指定訊息是否須經過加密、簽署,或兩者都進行。Gets or sets a value that specified whether the message must be encrypted, signed, or both.

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

其中一個 ProtectionLevel 值。One of the ProtectionLevel values. 預設為 NoneThe default is None.

例外狀況

當設定不是其中一個 ProtectionLevel 值時傳遞給屬性的值。The value passed to the property when the setting is not one of the ProtectionLevel values.

備註

如需保護層級及其假設和範圍的詳細資訊,請參閱 瞭解保護層級For details about protection levels and their assumptions and scopes, see Understanding Protection Level.

適用於