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 : 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
衍生
實作

建構函式

名稱 Description
DbParameterCollection()

初始化 DbParameterCollection 類別的新執行個體。

屬性

名稱 Description
Count

指定收藏品數量。

IsFixedSize

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

IsReadOnly

指定該集合是否為唯讀。

IsSynchronized

指定集合是否同步。

Item[Int32]

在指定的索引上取得或設定 。DbParameter

Item[String]

取得或設定指定名稱的 。DbParameter

SyncRoot

指定 Object 用於同步存取集合的 。

方法

名稱 Description
Add(Object)

將指定的 DbParameter 物件 DbParameterCollection加入 。

AddRange(Array)

將指定值的項目陣列加入 DbParameterCollection

Clear()

移除所有 DbParameter 的值。DbParameterCollection

Contains(Object)

表示 a 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)

明確介面實作

名稱 Description
ICollection.IsSynchronized

取得值,指出是否同步存取 ICollection (線程安全)。

IDataParameterCollection.Item[String]

取得或設定參數於指定的索引。

IList.IsFixedSize

會得到一個值,表示 是否 IList 具有固定大小。

IList.IsReadOnly

取得值,指出 IList 是否為唯讀。

IList.Item[Int32]

取得或設定位於指定索引處的專案。

擴充方法

名稱 Description
AsParallel(IEnumerable)

啟用查詢的平行處理。

AsQueryable(IEnumerable)

IEnumerable 轉換成 IQueryable

Cast<TResult>(IEnumerable)

IEnumerable 的項目轉換成指定的型別。

OfType<TResult>(IEnumerable)

根據指定的型別篩選 IEnumerable 的專案。

適用於

另請參閱