diff options
author | Chris Toshok <toshok@novell.com> | 2006-02-17 22:49:17 +0300 |
---|---|---|
committer | Chris Toshok <toshok@novell.com> | 2006-02-17 22:49:17 +0300 |
commit | 6a5801f910b4b96bd946934887bfe57942d1efd2 (patch) | |
tree | cf274df273eda8bc148312ddc41627e202ff9147 /mcs/class/System.Data/System.Data.Common/DbParameterCollection.cs | |
parent | 690ab7ea554478e941238e887468151d4f14de27 (diff) |
2006-02-17 Chris Toshok <toshok@ximian.com>
* DataAdapter.cs, DataColumnMappingCollection.cs,
DataColumnMapping.cs, DataTableMappingCollection.cs,
DataTableMapping.cs, DbCommandBuilder.cs,
DbConnectionStringBuilder.cs, DbParameterCollection.cs,
DbParameter.cs: pretty major attribute work.
svn path=/trunk/mcs/; revision=57016
Diffstat (limited to 'mcs/class/System.Data/System.Data.Common/DbParameterCollection.cs')
-rw-r--r-- | mcs/class/System.Data/System.Data.Common/DbParameterCollection.cs | 24 |
1 files changed, 22 insertions, 2 deletions
diff --git a/mcs/class/System.Data/System.Data.Common/DbParameterCollection.cs b/mcs/class/System.Data/System.Data.Common/DbParameterCollection.cs index c946ef382d4..a8abdac36ba 100644 --- a/mcs/class/System.Data/System.Data.Common/DbParameterCollection.cs +++ b/mcs/class/System.Data/System.Data.Common/DbParameterCollection.cs @@ -33,6 +33,7 @@ #if NET_2_0 || TARGET_JVM using System.Collections; +using System.ComponentModel; using System.Runtime.InteropServices; namespace System.Data.Common { @@ -49,6 +50,8 @@ namespace System.Data.Common { #region Properties + [Browsable (false)] + [DesignerSerializationVisibility (DesignerSerializationVisibility.Hidden)] public abstract int Count { get; } object IDataParameterCollection.this [string parameterName] { @@ -61,8 +64,19 @@ namespace System.Data.Common { set { this [index] = (DbParameter) value; } } + [Browsable (false)] + [DesignerSerializationVisibility (DesignerSerializationVisibility.Hidden)] + [EditorBrowsable (EditorBrowsableState.Never)] public abstract bool IsFixedSize { get; } + + [Browsable (false)] + [DesignerSerializationVisibility (DesignerSerializationVisibility.Hidden)] + [EditorBrowsable (EditorBrowsableState.Never)] public abstract bool IsReadOnly { get; } + + [Browsable (false)] + [DesignerSerializationVisibility (DesignerSerializationVisibility.Hidden)] + [EditorBrowsable (EditorBrowsableState.Never)] public abstract bool IsSynchronized { get; } public DbParameter this [string parameterName] { @@ -71,16 +85,19 @@ namespace System.Data.Common { return this [index]; } set { - int index = IndexOf (parameterName); + int index = IndexOf (parameterName); this [index] = value; } } - public DbParameter this [[Optional] int index] { + public DbParameter this [int index] { get { return GetParameter (index); } set { SetParameter (index,value); } } + [Browsable (false)] + [DesignerSerializationVisibility (DesignerSerializationVisibility.Hidden)] + [EditorBrowsable (EditorBrowsableState.Never)] public abstract object SyncRoot { get; } #endregion // Properties @@ -100,7 +117,10 @@ namespace System.Data.Common { public abstract bool Contains (object value); public abstract bool Contains (string value); public abstract void CopyTo (Array ar, int index); + + [EditorBrowsable (EditorBrowsableState.Never)] public abstract IEnumerator GetEnumerator (); + protected abstract DbParameter GetParameter (int index); public abstract int IndexOf (object value); public abstract int IndexOf (string parameterName); |