Share via


OperationDescription.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 は、 ProtectionLevel Windows Communication Foundation (WCF) プログラミング モデルの プロパティに対応します。

ProtectionLevel が設定されると、HasProtectionLevel プロパティは true に設定されます。

適用対象