41 references to PermissionTokenType
mscorlib (41)
system\security\permissionset.cs (15)
432
if ((permToken.m_type &
PermissionTokenType
.IUnrestricted) != 0)
467
if (this.IsUnrestricted() && ((permToken.m_type &
PermissionTokenType
.IUnrestricted) != 0))
874
if ((token.m_type &
PermissionTokenType
.IUnrestricted) != 0)
898
if ((token.m_type &
PermissionTokenType
.IUnrestricted) == 0)
1036
if ((token.m_type &
PermissionTokenType
.IUnrestricted) != 0)
1062
if ((token.m_type &
PermissionTokenType
.IUnrestricted) != 0)
1190
if (((token.m_type &
PermissionTokenType
.IUnrestricted) == 0) || !this.m_Unrestricted)
1308
if (((token.m_type &
PermissionTokenType
.IUnrestricted) == 0) || !pset.m_Unrestricted)
1327
if (((token.m_type &
PermissionTokenType
.IUnrestricted) == 0) || !pset.m_Unrestricted)
1798
Contract.Assert( (token.m_type &
PermissionTokenType
.DontKnow) == 0, "We should always know the permission type when getting a token from an instance" );
1906
Contract.Assert( (token.m_type &
PermissionTokenType
.DontKnow) == 0, "We should always know the permission type when getting a token from an instance" );
2040
Contract.Assert( (token.m_type &
PermissionTokenType
.DontKnow) == 0, "We should know the permission type already" );
2042
if ((token.m_type &
PermissionTokenType
.IUnrestricted) != 0)
2071
Contract.Assert( (token.m_type &
PermissionTokenType
.DontKnow) == 0, "We should know the permission type already" );
2073
if ((token.m_type &
PermissionTokenType
.IUnrestricted) != 0)
system\security\permissiontoken.cs (25)
101
internal volatile
PermissionTokenType
m_type;
141
internal PermissionToken(int index,
PermissionTokenType
type, String strTypeName)
293
Contract.Assert( (m_type &
PermissionTokenType
.DontKnow) == 0, "Should have valid token type when ToXml is called" );
295
if ((m_type &
PermissionTokenType
.BuiltIn) != 0)
319
this.m_type = (
PermissionTokenType
) Enum.Parse(typeof(
PermissionTokenType
), elRoot.Attribute("Type"));
320
Contract.Assert((this.m_type &
PermissionTokenType
.DontKnow) == 0, "Should have valid token type when FromXml is called.");
427
tok = new PermissionToken( m_index++,
PermissionTokenType
.IUnrestricted, typeStr );
432
tok = new PermissionToken( m_index++,
PermissionTokenType
.IUnrestricted, typeStr );
434
tok = new PermissionToken( m_index++,
PermissionTokenType
.Normal, typeStr );
455
if ((((PermissionToken)tok).m_type &
PermissionTokenType
.DontKnow) != 0)
460
((PermissionToken)tok).m_type =
PermissionTokenType
.IUnrestricted;
469
((PermissionToken)tok).m_type =
PermissionTokenType
.IUnrestricted;
471
((PermissionToken)tok).m_type =
PermissionTokenType
.Normal;
498
tok = new PermissionToken( m_index++,
PermissionTokenType
.DontKnow, typeStr );
521
PermissionTokenType
permType =
PermissionTokenType
.DontKnow;
525
permType =
PermissionTokenType
.IUnrestricted;
529
permType =
PermissionTokenType
.IUnrestricted;
532
token = new PermissionToken( index, permType |
PermissionTokenType
.BuiltIn, null );
539
if ((token.m_type &
PermissionTokenType
.DontKnow) != 0)
541
token.m_type =
PermissionTokenType
.BuiltIn;
545
token.m_type |=
PermissionTokenType
.IUnrestricted;
549
token.m_type |=
PermissionTokenType
.IUnrestricted;
553
token.m_type |=
PermissionTokenType
.DontKnow;
system\security\securityelement.cs (1)
845
Contract.Assert((token.m_type &
PermissionTokenType
.DontKnow) == 0, "Token type not properly assigned");