Share via


MessageDescription.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

ProtectionLevel 的值,指定訊息所需要的安全性服務。

例外狀況

設定的值不是 ProtectionLevel 的有效值。

備註

安全性服務是用於確保訊息中包含之資料的機密性、完整性和真實性。

適用於