37 references to PolicyLevelType
mscorlib (35)
system\security\policy\policylevel.cs (22)
52
private
PolicyLevelType
m_type;
102
m_type = System.Security.
PolicyLevelType
.User;
104
m_type = System.Security.
PolicyLevelType
.Machine;
106
m_type = System.Security.
PolicyLevelType
.Enterprise;
108
m_type = System.Security.
PolicyLevelType
.AppDomain;
115
case System.Security.
PolicyLevelType
.User:
117
case System.Security.
PolicyLevelType
.Machine:
119
case System.Security.
PolicyLevelType
.Enterprise:
121
case System.Security.
PolicyLevelType
.AppDomain:
139
internal PolicyLevel (
PolicyLevelType
type) : this (type, GetLocationFromType(type)) {}
142
internal PolicyLevel (
PolicyLevelType
type, string path) : this (type, path, ConfigId.None) {}
144
internal PolicyLevel (
PolicyLevelType
type, string path, ConfigId configId) {
159
internal static string GetLocationFromType (
PolicyLevelType
type) {
161
case
PolicyLevelType
.User:
163
case
PolicyLevelType
.Machine:
165
case
PolicyLevelType
.Enterprise:
175
return new PolicyLevel(System.Security.
PolicyLevelType
.AppDomain);
191
public
PolicyLevelType
Type {
903
if (m_type !=
PolicyLevelType
.User &&
904
m_type !=
PolicyLevelType
.Machine &&
905
m_type !=
PolicyLevelType
.Enterprise) {
1140
m_rootCodeGroup = (m_type ==
PolicyLevelType
.Machine ? CreateDefaultMachinePolicy() : CreateDefaultAllGroup());
system\security\policymanager.cs (10)
40
string enterpriseConfig = PolicyLevel.GetLocationFromType(System.Security.
PolicyLevelType
.Enterprise);
41
policyLevels.Add(new PolicyLevel(System.Security.
PolicyLevelType
.Enterprise, enterpriseConfig, ConfigId.EnterprisePolicyLevel));
43
string machineConfig = PolicyLevel.GetLocationFromType(System.Security.
PolicyLevelType
.Machine);
44
policyLevels.Add(new PolicyLevel(System.Security.
PolicyLevelType
.Machine, machineConfig, ConfigId.MachinePolicyLevel));
48
string userConfig = PolicyLevel.GetLocationFromType(System.Security.
PolicyLevelType
.User);
49
policyLevels.Add(new PolicyLevel(System.Security.
PolicyLevelType
.User, userConfig, ConfigId.UserPolicyLevel));
114
if (currentLevel.Type ==
PolicyLevelType
.AppDomain)
116
} else if (legacyIgnoreSystemPolicy && currentLevel.Type !=
PolicyLevelType
.AppDomain)
136
if (currentLevel.Type !=
PolicyLevelType
.AppDomain)
151
if (currentLevel.Type ==
PolicyLevelType
.AppDomain)
system\security\securitymanager.cs (3)
165
static public PolicyLevel LoadPolicyLevelFromFile(string path,
PolicyLevelType
type)
199
static public PolicyLevel LoadPolicyLevelFromString(string str,
PolicyLevelType
type)
206
private static PolicyLevel LoadPolicyLevelFromStringHelper (string str, string path,
PolicyLevelType
type)
System.Web (2)
Hosting\ApplicationManager.cs (1)
1477
policyLevel = SecurityManager.LoadPolicyLevelFromString(strFileData,
PolicyLevelType
.AppDomain);
HttpRuntime.cs (1)
3278
return SecurityManager.LoadPolicyLevelFromString(strFileData,
PolicyLevelType
.AppDomain);