DataProtectionPermission.Flags 속성

정의

데이터 및 메모리 보호 플래그를 가져오거나 설정합니다.

public:
 property System::Security::Permissions::DataProtectionPermissionFlags Flags { System::Security::Permissions::DataProtectionPermissionFlags get(); void set(System::Security::Permissions::DataProtectionPermissionFlags value); };
public System.Security.Permissions.DataProtectionPermissionFlags Flags { get; set; }
member this.Flags : System.Security.Permissions.DataProtectionPermissionFlags with get, set
Public Property Flags As DataProtectionPermissionFlags

속성 값

DataProtectionPermissionFlags

DataProtectionPermissionFlags 값의 비트 조합입니다.

예외

지정된 값이 DataProtectionPermissionFlags 값의 유효한 조합이 아닙니다.

예제

다음 코드 예제에서는 Flags 속성입니다. 이 코드 예제는에 대해 제공 된 큰 예제의 일부는 DataProtectionPermission 클래스입니다.

Console::WriteLine( "Creating the intersection of the second and "
"first permissions." );
sp4 = dynamic_cast<DataProtectionPermission^>(sp2->Intersect( sp1 ));
Console::WriteLine( "The value of the Flags property is: {0}", sp4->Flags );
Console.WriteLine("Creating the intersection of the second and " +
    "first permissions.");
sp4 = (DataProtectionPermission)sp2.Intersect(sp1);
Console.WriteLine("The value of the Flags property is: " +
    sp4.Flags.ToString());
Console.WriteLine("Creating the intersection of the second and " + "first permissions.")
sp4 = CType(sp2.Intersect(sp1), DataProtectionPermission)
Console.WriteLine("The value of the Flags property is: " + sp4.Flags.ToString())

설명

이 속성은 클래스 ProtectedMemoryUnprotect 클래스의 Protect 메서드를 ProtectedData 사용할 수 있는지 여부를 지정합니다.

적용 대상