blob: 0132544434e706ebcaa6d6e73f9189322a6ffb14 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
|
//
// System.Data.Common.DbDataPermissionAttribute.cs
//
// Authors:
// Rodrigo Moya (rodrigo@ximian.com)
// Tim Coleman (tim@timcoleman.com)
//
// (C) Ximian, Inc
// Copyright (C) Tim Coleman, 2002
//
using System;
using System.Security.Permissions;
namespace System.Data.Common {
[AttributeUsage (AttributeTargets.Assembly | AttributeTargets.Class |
AttributeTargets.Struct | AttributeTargets.Constructor |
AttributeTargets.Method, AllowMultiple=true,
Inherited=false)]
[Serializable]
public abstract class DBDataPermissionAttribute : CodeAccessSecurityAttribute
{
#region Fields
SecurityAction securityAction;
bool allowBlankPassword;
#if NET_1_1
KeyRestrictionBehavior keyRestrictionBehavior;
String connectionString;
#endif
#endregion // Fields
#region Constructors
protected DBDataPermissionAttribute (SecurityAction action)
: base (action)
{
securityAction = action;
allowBlankPassword = false;
}
#endregion // Constructors
#region Properties
public bool AllowBlankPassword {
get { return allowBlankPassword; }
set { allowBlankPassword = value; }
}
[MonoTODO]
public string KeyRestrictions {
get {
throw new NotImplementedException ();
}
set {
throw new NotImplementedException ();
}
}
#if NET_1_1
public String ConnectionString {
get { return connectionString; }
set { connectionString = value; }
}
public KeyRestrictionBehavior KeyRestrictionBehavior {
get { return keyRestrictionBehavior; }
set { keyRestrictionBehavior = value; }
}
#endif
#endregion // Properties
#region // Methods
#if NET_2_0
[MonoTODO]
public bool ShouldSerializeConnectionString ()
{
throw new NotImplementedException ();
}
[MonoTODO]
public bool ShouldSerializeKeyRestrictions ()
{
throw new NotImplementedException ();
}
#endif
#endregion // Methods
}
}
|