FaultContractAttribute.HasProtectionLevel 屬性

定義

取得指出 SOAP 錯誤訊息是否已指派保護層級的值。

public:
 property bool HasProtectionLevel { bool get(); };
public bool HasProtectionLevel { get; }
member this.HasProtectionLevel : bool
Public ReadOnly Property HasProtectionLevel As Boolean

屬性值

Boolean

如果錯誤訊息有保護層級則為 true,否則為 false。 預設為 false

備註

HasProtectionLevel使用 屬性可指定 SOAP 錯誤訊息是否必須加密、簽署或兩者。 如需詳細資訊, ProtectionLevel 請參閱 屬性。

適用於