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()

DbParameterCollection 中移除所有 DbParameter 值。

Contains(Object)

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

Contains(String)

指出集合中是否存在具有指定名稱的 DbParameter

CopyTo(Array, Int32)

從指定索引處開始,將項目的陣列複製到集合。

CreateObjRef(Type)

建立包含所有相關資訊的物件,這些資訊是產生用來與遠端物件通訊的所需 Proxy。

(繼承來源 MarshalByRefObject)
Equals(Object)

判斷指定的物件是否等於目前的物件。

(繼承來源 Object)
GetEnumerator()

公開 GetEnumerator() 方法,其支援由 .NET 資料提供者對集合執行簡單的反覆運算。

GetHashCode()

做為預設雜湊函式。

(繼承來源 Object)
GetLifetimeService()
已過時。

擷取控制這個執行個體存留期 (Lifetime) 原則的目前存留期服務物件。

(繼承來源 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

適用於

另請參閱