Imported Upstream version 4.0.0~alpha1

Former-commit-id: 806294f5ded97629b74c85c09952f2a74fe182d9
This commit is contained in:
Jo Shields
2015-04-07 09:35:12 +01:00
parent 283343f570
commit 3c1f479b9d
22469 changed files with 2931443 additions and 869343 deletions

View File

@@ -55,9 +55,7 @@ namespace System.Security {
// properties
#if NET_4_0
[Obsolete]
#endif
public static bool CheckExecutionRights {
get { return false; }
set { ; }
@@ -91,93 +89,71 @@ namespace System.Security {
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)
{
@@ -231,7 +207,6 @@ namespace System.Security {
throw new NotSupportedException ();
}
#if NET_4_0
public static PermissionSet GetStandardSandbox (Evidence evidence)
{
if (evidence == null)
@@ -244,8 +219,7 @@ namespace System.Security {
{
throw new NotImplementedException ();
}
#endif
}
}
#endif
#endif