DbParameterCollection 类

定义

DbCommand 相关的参数集合的基类。

public ref class DbParameterCollection abstract : System::Collections::IList
public ref class DbParameterCollection abstract : MarshalByRefObject, System::Collections::IList, System::Data::IDataParameterCollection
public ref class DbParameterCollection abstract : System::Collections::IList, System::Data::IDataParameterCollection
public ref class DbParameterCollection abstract : MarshalByRefObject, System::Data::IDataParameterCollection
public abstract class DbParameterCollection : System.Collections.IList
public abstract class DbParameterCollection : MarshalByRefObject, System.Collections.IList, System.Data.IDataParameterCollection
public abstract class DbParameterCollection : System.Collections.IList, System.Data.IDataParameterCollection
public abstract class DbParameterCollection : MarshalByRefObject, System.Data.IDataParameterCollection
type DbParameterCollection = class
    interface ICollection
    interface IEnumerable
    interface IList
type DbParameterCollection = class
    inherit MarshalByRefObject
    interface ICollection
    interface IEnumerable
    interface IList
    interface IDataParameterCollection
type DbParameterCollection = class
    interface ICollection
    interface IEnumerable
    interface IList
    interface IDataParameterCollection
type DbParameterCollection = class
    inherit MarshalByRefObject
    interface IDataParameterCollection
    interface IList
    interface ICollection
    interface IEnumerable
Public MustInherit Class DbParameterCollection
Implements IList
Public MustInherit Class DbParameterCollection
Inherits MarshalByRefObject
Implements IDataParameterCollection, IList
Public MustInherit Class DbParameterCollection
Implements IDataParameterCollection, IList
Public MustInherit Class DbParameterCollection
Inherits MarshalByRefObject
Implements IDataParameterCollection
继承
DbParameterCollection
继承
DbParameterCollection
派生
实现

构造函数

DbParameterCollection()

初始化 DbParameterCollection 类的新实例。

属性

Count

指定集合中项的数目。

IsFixedSize

指定集合是否为固定大小。

IsReadOnly

指定集合是否为只读。

IsSynchronized

指定是否同步集合。

Item[Int32]

获取或设置指定索引处的 DbParameter

Item[String]

获取或设置具有指定名称的 DbParameter

SyncRoot

指定将用于同步集合访问的 Object

方法

Add(Object)

将指定的 DbParameter 对象添加到 DbParameterCollection 中。

AddRange(Array)

将具有指定值的项的数组添加到 DbParameterCollection

Clear()

将所有 DbParameter 值从 DbParameterCollection 中移除。

Contains(Object)

指示集合中是否包含具有指定 ValueDbParameter

Contains(String)

指示具有指定名称的 DbParameter 是否存在于集合中。

CopyTo(Array, Int32)

将项的数组复制到从指定索引开始的集合。

CreateObjRef(Type)

创建一个对象,该对象包含生成用于与远程对象进行通信的代理所需的全部相关信息。

(继承自 MarshalByRefObject)
Equals(Object)

确定指定对象是否等于当前对象。

(继承自 Object)
GetEnumerator()

公开 GetEnumerator() 方法,该方法支持 .NET 数据提供程序对集合进行简单的迭代。

GetHashCode()

作为默认哈希函数。

(继承自 Object)
GetLifetimeService()
已过时。

检索控制此实例的生存期策略的当前生存期服务对象。

(继承自 MarshalByRefObject)
GetParameter(Int32)

返回位于集合中指定索引处的 DbParameter 对象。

GetParameter(String)

返回具有指定名称的 DbParameter 对象。

GetType()

获取当前实例的 Type

(继承自 Object)
IndexOf(Object)

返回指定的 DbParameter 对象的索引。

IndexOf(String)

返回具有指定名称的 DbParameter 对象的索引。

InitializeLifetimeService()
已过时。

获取生存期服务对象来控制此实例的生存期策略。

(继承自 MarshalByRefObject)
Insert(Int32, Object)

将具有指定名称的 DbParameter 对象的指定索引插入指定索引处的集合中。

MemberwiseClone()

创建当前 Object 的浅表副本。

(继承自 Object)
MemberwiseClone(Boolean)

创建当前 MarshalByRefObject 对象的浅表副本。

(继承自 MarshalByRefObject)
Remove(Object)

从集合中移除指定的 DbParameter 对象。

RemoveAt(Int32)

从集合中删除位于指定位置的 DbParameter 对象。

RemoveAt(String)

从集合中删除具有指定名称的 DbParameter 对象。

SetParameter(Int32, DbParameter)

将指定索引处的 DbParameter 对象设置为新值。

SetParameter(String, DbParameter)

将具有指定名称的 DbParameter 对象设置为新值。

ToString()

返回表示当前对象的字符串。

(继承自 Object)

显式接口实现

ICollection.IsSynchronized

获取一个值,该值指示是否同步对 ICollection 的访问(线程安全)。

IDataParameterCollection.Item[String]

获取或设置指定索引处的参数。

IList.Add(Object)

有关此成员的说明,请参见 Add(Object)

IList.Contains(Object)

有关此成员的说明,请参见 Contains(Object)

IList.IndexOf(Object)

有关此成员的说明,请参见 IndexOf(Object)

IList.Insert(Int32, Object)

有关此成员的说明,请参见 Insert(Int32, Object)

IList.IsFixedSize

获取一个值,该值指示 IList 是否具有固定大小。

IList.IsReadOnly

获取一个值,该值指示 IList 是否为只读。

IList.Item[Int32]

获取或设置指定索引处的元素。

IList.Remove(Object)

有关此成员的说明,请参见 Remove(Object)

扩展方法

Cast<TResult>(IEnumerable)

IEnumerable 的元素强制转换为指定的类型。

OfType<TResult>(IEnumerable)

根据指定类型筛选 IEnumerable 的元素。

AsParallel(IEnumerable)

启用查询的并行化。

AsQueryable(IEnumerable)

IEnumerable 转换为 IQueryable

适用于

另请参阅