ContractDescription.HasProtectionLevel 속성

정의

계약에 보호 수준이 설정되어 있는지 여부를 나타내는 값을 가져옵니다.

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

속성 값

Boolean

보호 수준이 설정되어 있으면 true이고, 그렇지 않으면 false입니다.

예제

bool hasProtectionLevel = cd.HasProtectionLevel;
if (hasProtectionLevel)
{
    ProtectionLevel protectionLevel = cd.ProtectionLevel;
    Console.WriteLine("\tProtection Level: {0}", protectionLevel.ToString());
}
Dim hasProtectionLevel As Boolean = cd.HasProtectionLevel
If hasProtectionLevel Then
    Dim protectionLevel As ProtectionLevel = cd.ProtectionLevel
    Console.WriteLine(Constants.vbTab & "Protection Level: {0}", protectionLevel.ToString())
End If

설명

ProtectionLevel 설정되면 속성이 HasProtectionLevel .로 true설정됩니다.

적용 대상