//
using System.Runtime.InteropServices;
-\r
-namespace System.Security.Permissions {\r
-\r
-#if NET_2_0
+
+namespace System.Security.Permissions {
+
[ComVisible (true)]
-#endif
[AttributeUsage (AttributeTargets.Assembly | AttributeTargets.Class |
AttributeTargets.Struct | AttributeTargets.Constructor |
AttributeTargets.Method, AllowMultiple=true, Inherited=false)]
// Methods
public override IPermission CreatePermission ()
{
+#if NET_2_1
+ return null;
+#else
EnvironmentPermission perm = null;
if (this.Unrestricted)
perm = new EnvironmentPermission (PermissionState.Unrestricted);
perm.AddPathList (EnvironmentPermissionAccess.Write, write);
}
return perm;
+#endif
}
}
}