// Author:
// Sebastien Pouliot <sebastien@ximian.com>
//
-// Copyright (C) 2004 Novell, Inc (http://www.novell.com)
+// Copyright (C) 2004-2005 Novell, Inc (http://www.novell.com)
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
-#if NET_2_0
-using System;
using System.Runtime.InteropServices;
using System.Runtime.Serialization;
using System.Security.Permissions;
namespace System.Security {
[Serializable]
- public class HostProtectionException : SystemException, _Exception {
+ [ComVisible (true)]
+ [MonoTODO ("Not supported in the runtime")]
+ public class HostProtectionException : SystemException {
- private HostProtectionResource _inaccessible;
private HostProtectionResource _protected;
private HostProtectionResource _demanded;
- public HostProtectionException (string message, HostProtectionResource inaccessibleResources,
- HostProtectionResource protectedResources, HostProtectionResource demandedRessources)
+ public HostProtectionException ()
+ {
+ }
+
+ public HostProtectionException (string message)
: base (message)
{
}
+ public HostProtectionException (string message, Exception e)
+ : base (message, e)
+ {
+ }
+
+ public HostProtectionException (string message, HostProtectionResource protectedResources, HostProtectionResource demandedResources)
+ : base (message)
+ {
+ this._protected = protectedResources;
+ this._demanded = demandedResources;
+ }
+
protected HostProtectionException (SerializationInfo info, StreamingContext context)
{
GetObjectData (info, context);
public HostProtectionResource DemandedResources {
get { return _demanded; }
- set { _demanded = value; }
- }
-
- public HostProtectionResource InaccessibleResources {
- get { return _inaccessible; }
- set { _inaccessible = value; }
}
public HostProtectionResource ProtectedResources {
get { return _protected; }
- set { _protected = value; }
}
[MonoTODO]
}
}
}
-
-#endif