DbParameterCollection 类

定义

与 <a0/> 相关的参数集合的基类。

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 : 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 : MarshalByRefObject, System.Data.IDataParameterCollection
type DbParameterCollection = class
    interface ICollection
    interface IEnumerable
    interface IList
type DbParameterCollection = class
    inherit MarshalByRefObject
    interface IDataParameterCollection
    interface IList
    interface ICollection
    interface IEnumerable
type DbParameterCollection = class
    inherit MarshalByRefObject
    interface ICollection
    interface IEnumerable
    interface IList
    interface IDataParameterCollection
Public MustInherit Class DbParameterCollection
Implements IList
Public MustInherit Class DbParameterCollection
Inherits MarshalByRefObject
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()

从 .DbParameterCollection中删除所有DbParameter值。

Contains(Object)

指示集合中是否 DbParameter 包含具有指定 Value 值。

Contains(String)

指示集合中是否存在具有指定名称的 A 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.IsFixedSize

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

IList.IsReadOnly

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

IList.Item[Int32]

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

扩展方法

名称 说明
AsParallel(IEnumerable)

启用查询的并行化。

AsQueryable(IEnumerable)

IEnumerable 转换为 IQueryable

Cast<TResult>(IEnumerable)

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

OfType<TResult>(IEnumerable)

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

适用于

另请参阅