diff options
Diffstat (limited to 'mcs/class/System.Data/System.Data.Common/DbDataPermission.cs')
-rw-r--r-- | mcs/class/System.Data/System.Data.Common/DbDataPermission.cs | 46 |
1 files changed, 45 insertions, 1 deletions
diff --git a/mcs/class/System.Data/System.Data.Common/DbDataPermission.cs b/mcs/class/System.Data/System.Data.Common/DbDataPermission.cs index 0d157b60e6c..963503068b0 100644 --- a/mcs/class/System.Data/System.Data.Common/DbDataPermission.cs +++ b/mcs/class/System.Data/System.Data.Common/DbDataPermission.cs @@ -6,9 +6,10 @@ // Tim Coleman (tim@timcoleman.com) // // (C) Ximian, Inc -// Copyright (C) Tim Coleman, 2002 +// Copyright (C) Tim Coleman, 2002-2003 // +using System.Data; using System.Security; using System.Security.Permissions; @@ -25,16 +26,29 @@ namespace System.Data.Common { #region Constructors +#if NET_1_2 + [Obsolete ("use DBDataPermission (PermissionState.None)", true)] +#endif protected DBDataPermission () : this (PermissionState.None, false) { } +#if NET_1_2 + [MonoTODO] + protected DBDataPermission (DbConnectionString constr) + { + } +#endif + protected DBDataPermission (PermissionState state) : this (state, false) { } +#if NET_1_2 + [Obsolete ("use DBDataPermission (PermissionState.None)", true)] +#endif public DBDataPermission (PermissionState state, bool allowBlankPassword) { this.state = state; @@ -59,6 +73,22 @@ namespace System.Data.Common { #region Methods +#if NET_1_1 + [MonoTODO] + public virtual void Add (string connectionString, string restrictions, KeyRestrictionBehavior behavior) + { + throw new NotImplementedException (); + } +#endif + +#if NET_1_2 + [MonoTODO] + protected void AddConnectionString (DbConnectionString constr) + { + throw new NotImplementedException (); + } +#endif + public override IPermission Copy () { DBDataPermission copy = CreateInstance (); @@ -95,6 +125,20 @@ namespace System.Data.Common { return (state == PermissionState.Unrestricted); } +#if NET_1_2 + [MonoTODO] + protected void SetConnectionString (DbConnectionString constr) + { + throw new NotImplementedException (); + } + + [MonoTODO] + public virtual void SetRestriction (string connectionString, string restrictions, KeyRestrictionBehavior behavior) + { + throw new NotImplementedException (); + } +#endif + [MonoTODO] public override SecurityElement ToXml () { |