20 instantiations of NamedPermissionSet
mscorlib (10)
system\security\builtinpermissionsets.cs (3)
293
NamedPermissionSet deserializedPermissionSet = new
NamedPermissionSet
(securityElement);
314
NamedPermissionSet deserializedPermissionSet = new
NamedPermissionSet
(securityElement);
336
PermissionSet extensions = new
NamedPermissionSet
(se);
system\security\namedpermissionset.cs (2)
124
return new
NamedPermissionSet
( this );
129
NamedPermissionSet set = new
NamedPermissionSet
( this );
system\security\policy\policylevel.cs (3)
476
return new
NamedPermissionSet
(permSet);
706
NamedPermissionSet permSet = new
NamedPermissionSet
();
1199
NamedPermissionSet permSet = new
NamedPermissionSet
();
system\security\policy\policystatement.cs (2)
410
m_permSet = new
NamedPermissionSet
( "DefaultName", PermissionState.None );
496
m_permSet = new
NamedPermissionSet
( "DefaultName", PermissionState.None );
System (1)
net\System\Net\_AutoWebProxyScriptWrapper.cs (1)
597
NamedPermissionSet perms = new
NamedPermissionSet
("__WebProxySandbox", PermissionState.None);
System.Data (6)
fx\src\data\System\Data\Odbc\OdbcConnectionString.cs (1)
47
permissionSet = new
NamedPermissionSet
("FullTrust");
fx\src\data\System\Data\OleDb\ColumnBinding.cs (2)
922
(new System.Security.
NamedPermissionSet
("FullTrust")).Demand(); // MDAC 80727
951
(new System.Security.
NamedPermissionSet
("FullTrust")).Demand(); // MDAC 80727
fx\src\data\System\Data\OleDb\oledbconnectionstring.cs (1)
161
permissionSet = new
NamedPermissionSet
("FullTrust");
fx\src\data\System\Data\Sql\SqlDataSourceEnumerator.cs (1)
42
(new
NamedPermissionSet
("FullTrust")).Demand(); // SQLBUDT 244304
fx\src\data\System\Data\SqlClient\LocalDBAPI.cs (1)
281
_fullTrust = new
NamedPermissionSet
("FullTrust");
System.Web (1)
HttpRuntime.cs (1)
2502
return new
NamedPermissionSet
(namedPermissionSet);
System.Xml (1)
System\Xml\Dom\XmlDocument.cs (1)
345
new
NamedPermissionSet
( "FullTrust" ).Demand();
XamlBuildTask (1)
Microsoft\Build\Tasks\Xaml\XamlBuildTaskServices.cs (1)
229
new
NamedPermissionSet
("FullTrust"));
66 references to NamedPermissionSet
mscorlib (56)
system\security\builtinpermissionsets.cs (22)
213
private static
NamedPermissionSet
s_everything;
214
private static
NamedPermissionSet
s_execution;
215
private static
NamedPermissionSet
s_fullTrust;
216
private static
NamedPermissionSet
s_internet;
217
private static
NamedPermissionSet
s_localIntranet;
218
private static
NamedPermissionSet
s_nothing;
219
private static
NamedPermissionSet
s_skipVerification;
225
internal static
NamedPermissionSet
Everything
234
internal static
NamedPermissionSet
Execution
239
internal static
NamedPermissionSet
FullTrust
244
internal static
NamedPermissionSet
Internet
253
internal static
NamedPermissionSet
LocalIntranet
262
internal static
NamedPermissionSet
Nothing
267
internal static
NamedPermissionSet
SkipVerification
277
private static
NamedPermissionSet
GetOrDeserializeExtendablePermissionSet(ref
NamedPermissionSet
permissionSet,
293
NamedPermissionSet
deserializedPermissionSet = new NamedPermissionSet(securityElement);
302
return permissionSet.Copy() as
NamedPermissionSet
;
305
private static
NamedPermissionSet
GetOrDeserializePermissionSet(ref
NamedPermissionSet
permissionSet,
314
NamedPermissionSet
deserializedPermissionSet = new NamedPermissionSet(securityElement);
320
return permissionSet.Copy() as
NamedPermissionSet
;
system\security\namedpermissionset.cs (3)
78
public NamedPermissionSet(
NamedPermissionSet
permSet )
127
public
NamedPermissionSet
Copy( String name )
129
NamedPermissionSet
set = new NamedPermissionSet( this );
system\security\policy\codegroup.cs (4)
266
NamedPermissionSet
permSet = m_policy.GetPermissionSetNoCopy() as
NamedPermissionSet
;
349
NamedPermissionSet
namedPermSet = permSet as
NamedPermissionSet
;
system\security\policy\policylevel.cs (24)
247
newList.Add(((
NamedPermissionSet
)enumerator.Current).Copy());
337
public void AddNamedPermissionSet(
NamedPermissionSet
permSet) {
348
if (((
NamedPermissionSet
)enumerator.Current).Name.Equals(permSet.Name))
352
NamedPermissionSet
npsCopy = (
NamedPermissionSet
)permSet.Copy();
358
public
NamedPermissionSet
RemoveNamedPermissionSet(
NamedPermissionSet
permSet) {
367
public
NamedPermissionSet
RemoveNamedPermissionSet(string name) {
389
if (((
NamedPermissionSet
)namedPermissionSets[index]).Name.Equals(name)) {
421
NamedPermissionSet
permSet = (
NamedPermissionSet
)namedPermissionSets[permSetIndex];
427
public
NamedPermissionSet
ChangeNamedPermissionSet(string name, PermissionSet pSet) {
441
NamedPermissionSet
currentPSet = GetNamedPermissionSetInternal(name);
448
NamedPermissionSet
retval = (
NamedPermissionSet
)currentPSet.Copy();
459
if (pSet is
NamedPermissionSet
) {
460
currentPSet.Description = ((
NamedPermissionSet
)pSet).Description;
467
public
NamedPermissionSet
GetNamedPermissionSet(string name) {
472
NamedPermissionSet
permSet = GetNamedPermissionSetInternal(name);
526
elPermSets.AddChild(NormalizeClassDeep(((
NamedPermissionSet
)enumerator.Current).ToXml(), classes));
685
internal
NamedPermissionSet
GetNamedPermissionSetInternal(string name) {
691
foreach (
NamedPermissionSet
permissionSet in m_namedPermissionSets) {
706
NamedPermissionSet
permSet = new NamedPermissionSet();
1199
NamedPermissionSet
permSet = new NamedPermissionSet();
system\security\policy\policystatement.cs (3)
323
if (m_permSet is
NamedPermissionSet
)
329
NamedPermissionSet
namedPermSet = (
NamedPermissionSet
)m_permSet;
System (1)
net\System\Net\_AutoWebProxyScriptWrapper.cs (1)
597
NamedPermissionSet
perms = new NamedPermissionSet("__WebProxySandbox", PermissionState.None);
System.Data.Entity (1)
System\Data\Metadata\Edm\LightweightCodeGenerator.cs (1)
67
/// <permission cref="System.Security.
NamedPermissionSet
">
System.ServiceModel.Activation (2)
System\ServiceModel\Activation\AspNetPartialTrustHelpers.cs (2)
51
NamedPermissionSet
aspNetPermissionSet = GetHttpRuntimeNamedPermissionSet();
74
static
NamedPermissionSet
GetHttpRuntimeNamedPermissionSet()
System.Web (5)
HttpRuntime.cs (4)
184
private
NamedPermissionSet
_namedPermissionSet;
2473
internal static
NamedPermissionSet
NamedPermissionSet {
2496
public static
NamedPermissionSet
GetNamedPermissionSet() {
2497
NamedPermissionSet
namedPermissionSet = _theRuntime._namedPermissionSet;
Util\Permission.cs (1)
20
NamedPermissionSet
permissionset = HttpRuntime.NamedPermissionSet;
System.Web.Extensions (1)
Script\Services\RestHandler.cs (1)
189
NamedPermissionSet
s_permissionSet = HttpRuntime.NamedPermissionSet;