MessageContractAttribute.ProtectionLevel 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得或設定一個值,指定訊息必須加密、簽署或同時進行。
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 的值時,該值會傳給屬性。
備註
關於保護等級及其假設與範圍的詳細資訊,請參閱 「了解保護等級」。