// properties
-#if NET_4_0
[Obsolete]
-#endif
public static bool CheckExecutionRights {
get { return false; }
set { ; }
origin = new ArrayList ();
}
-#if NET_4_0
[Obsolete]
-#endif
public static bool IsGranted (IPermission perm)
{
return true;
}
-#if NET_4_0
[Obsolete]
-#endif
[SecurityPermission (SecurityAction.Demand, ControlPolicy = true)]
public static PolicyLevel LoadPolicyLevelFromFile (string path, PolicyLevelType type)
{
throw new NotSupportedException ();
}
-#if NET_4_0
[Obsolete]
-#endif
[SecurityPermission (SecurityAction.Demand, ControlPolicy = true)]
public static PolicyLevel LoadPolicyLevelFromString (string str, PolicyLevelType type)
{
throw new NotSupportedException ();
}
-#if NET_4_0
[Obsolete]
-#endif
[SecurityPermission (SecurityAction.Demand, ControlPolicy = true)]
public static IEnumerator PolicyHierarchy ()
{
throw new NotSupportedException ();
}
-#if NET_4_0
[Obsolete]
-#endif
public static PermissionSet ResolvePolicy (Evidence evidence)
{
throw new NotSupportedException ();
}
-#if NET_4_0
[Obsolete]
-#endif
public static PermissionSet ResolvePolicy (Evidence[] evidences)
{
throw new NotSupportedException ();
}
-#if NET_4_0
[Obsolete]
-#endif
public static PermissionSet ResolveSystemPolicy (Evidence evidence)
{
throw new NotSupportedException ();
}
-#if NET_4_0
[Obsolete]
-#endif
public static PermissionSet ResolvePolicy (Evidence evidence, PermissionSet reqdPset, PermissionSet optPset, PermissionSet denyPset, out PermissionSet denied)
{
throw new NotSupportedException ();
}
-#if NET_4_0
[Obsolete]
-#endif
public static IEnumerator ResolvePolicyGroups (Evidence evidence)
{
throw new NotSupportedException ();
}
-#if NET_4_0
[Obsolete]
-#endif
[SecurityPermission (SecurityAction.Demand, ControlPolicy = true)]
public static void SavePolicy ()
{
throw new NotSupportedException ();
}
-#if NET_4_0
[Obsolete]
-#endif
[SecurityPermission (SecurityAction.Demand, ControlPolicy = true)]
public static void SavePolicyLevel (PolicyLevel level)
{
throw new NotSupportedException ();
}
-#if NET_4_0
public static PermissionSet GetStandardSandbox (Evidence evidence)
{
if (evidence == null)
{
throw new NotImplementedException ();
}
-#endif
}
}