40 references to DataProtectionPermissionFlags
System.Security (40)
system\security\cryptography\cryptoapi.cs (4)
2823
DataProtectionPermission dp = new DataProtectionPermission(
DataProtectionPermissionFlags
.ProtectData);
2839
DataProtectionPermission dp = new DataProtectionPermission(
DataProtectionPermissionFlags
.UnprotectData);
2851
DataProtectionPermission dp = new DataProtectionPermission(
DataProtectionPermissionFlags
.ProtectMemory);
2863
DataProtectionPermission dp = new DataProtectionPermission(
DataProtectionPermissionFlags
.UnprotectMemory);
system\security\permissions\dataprotectionpermission.cs (21)
18
private
DataProtectionPermissionFlags
m_flags;
22
m_flags =
DataProtectionPermissionFlags
.AllFlags;
24
m_flags =
DataProtectionPermissionFlags
.NoFlags;
29
public DataProtectionPermission (
DataProtectionPermissionFlags
flag) {
33
public
DataProtectionPermissionFlags
Flags {
48
return m_flags ==
DataProtectionPermissionFlags
.AllFlags;
61
DataProtectionPermissionFlags
flag_union = m_flags | operand.m_flags;
62
if (flag_union ==
DataProtectionPermissionFlags
.NoFlags)
74
return m_flags ==
DataProtectionPermissionFlags
.NoFlags;
78
DataProtectionPermissionFlags
sourceFlag = this.m_flags;
79
DataProtectionPermissionFlags
targetFlag = operand.m_flags;
93
DataProtectionPermissionFlags
flag_intersect = operand.m_flags & this.m_flags;
94
if (flag_intersect ==
DataProtectionPermissionFlags
.NoFlags)
105
if (this.Flags ==
DataProtectionPermissionFlags
.NoFlags)
135
m_flags =
DataProtectionPermissionFlags
.AllFlags;
139
m_flags =
DataProtectionPermissionFlags
.NoFlags;
142
DataProtectionPermissionFlags
flags = (
DataProtectionPermissionFlags
) Enum.Parse(typeof(
DataProtectionPermissionFlags
), strFlags);
148
internal static void VerifyFlags (
DataProtectionPermissionFlags
flags) {
149
if ((flags & ~
DataProtectionPermissionFlags
.AllFlags) != 0)
system\security\permissions\dataprotectionpermissionattribute.cs (15)
18
private
DataProtectionPermissionFlags
m_flags =
DataProtectionPermissionFlags
.NoFlags;
22
public
DataProtectionPermissionFlags
Flags {
31
get { return (m_flags &
DataProtectionPermissionFlags
.ProtectData) != 0; }
32
set { m_flags = value ? m_flags |
DataProtectionPermissionFlags
.ProtectData : m_flags & ~
DataProtectionPermissionFlags
.ProtectData; }
36
get { return (m_flags &
DataProtectionPermissionFlags
.UnprotectData) != 0; }
37
set { m_flags = value ? m_flags |
DataProtectionPermissionFlags
.UnprotectData : m_flags & ~
DataProtectionPermissionFlags
.UnprotectData; }
41
get { return (m_flags &
DataProtectionPermissionFlags
.ProtectMemory) != 0; }
42
set { m_flags = value ? m_flags |
DataProtectionPermissionFlags
.ProtectMemory : m_flags & ~
DataProtectionPermissionFlags
.ProtectMemory; }
46
get { return (m_flags &
DataProtectionPermissionFlags
.UnprotectMemory) != 0; }
47
set { m_flags = value ? m_flags |
DataProtectionPermissionFlags
.UnprotectMemory : m_flags & ~
DataProtectionPermissionFlags
.UnprotectMemory; }