IDataParameterCollection 介面

定義

收集所有與 Command 物件相關的參數及其對 DataSet 應欄位,並由存取資料來源的 .NET 資料提供者實作。

public interface class IDataParameterCollection : System::Collections::IList
public interface IDataParameterCollection : System.Collections.IList
type IDataParameterCollection = interface
    interface ICollection
    interface IEnumerable
    interface IList
type IDataParameterCollection = interface
    interface IList
    interface ICollection
    interface IEnumerable
Public Interface IDataParameterCollection
Implements IList
衍生
實作

備註

介面允許 IDataParameterCollection 繼承類別實作參數集合。 欲了解更多參數類別資訊,請參閱 參數與參數資料型態的配置

應用程式不會直接建立介面的實例 IDataParameterCollection ,而是建立一個繼承 的 IDataParameterCollection類別實例。

繼承 IDataParameterCollection 類別必須實作繼承的成員,並通常定義額外成員以增加提供者專屬功能。 例如,介面 IDataParameterCollection 定義了方法的一種實作 RemoveAt 。 反過來,類別OleDbParameterCollection繼承了此方法,並定義了兩個額外的重載。RemoveAt

給實施者的注意事項

當你從 IDataParameterCollection 介面繼承時,應該實作以下的建構函件。

項目 描述
PrvParameterCollection() 建立一個空的 PrvParameterCollection 類別。

屬性

名稱 Description
Count

得到包含於 的 ICollection元素數量。

(繼承來源 ICollection)
IsFixedSize

取得值,指出 IList 是否有固定大小。

(繼承來源 IList)
IsReadOnly

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

(繼承來源 IList)
IsSynchronized

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

(繼承來源 ICollection)
Item[Int32]

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

(繼承來源 IList)
Item[String]

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

SyncRoot

取得一個物件,可用來同步存取 ICollection

(繼承來源 ICollection)

方法

名稱 Description
Add(Object)

將一個項目加入 IList

(繼承來源 IList)
Clear()

移除所有項目。IList

(繼承來源 IList)
Contains(Object)

判斷是否 IList 包含特定值。

(繼承來源 IList)
Contains(String)

會取得一個值,表示集合中的某參數是否具有指定的名稱。

CopyTo(Array, Int32)

從特定ICollection索引開始,將 的Array元素複製到 Array

(繼承來源 ICollection)
GetEnumerator()

傳回逐一查看集合的列舉值。

(繼承來源 IEnumerable)
IndexOf(Object)

決定特定項目的 IList索引。

(繼承來源 IList)
IndexOf(String)

取得收藏中的位置 IDataParameter

Insert(Int32, Object)

在指定的索引處插入一個項目 IList

(繼承來源 IList)
Remove(Object)

IList移除第一個出現的特定物件。

(繼承來源 IList)
RemoveAt(Int32)

移除 IList 指定索引的項目。

(繼承來源 IList)
RemoveAt(String)

將 從收藏中移除。IDataParameter

擴充方法

名稱 Description
AsParallel(IEnumerable)

啟用查詢的平行處理。

AsQueryable(IEnumerable)

IEnumerable 轉換成 IQueryable

Cast<TResult>(IEnumerable)

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

OfType<TResult>(IEnumerable)

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

適用於