語言

EntityParameterCollection 類別

定義

代表 EntityCommand 中使用的參數集合的類別

[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1010:CollectionsShouldImplementGenericInterface")]
public sealed class EntityParameterCollection : System.Data.Common.DbParameterCollection
type EntityParameterCollection = class
    inherit DbParameterCollection
Public NotInheritable Class EntityParameterCollection
Inherits DbParameterCollection
繼承
EntityParameterCollection
屬性

屬性

名稱 Description
Count

得到一個整數,包含 中 EntityParameterCollection 元素的數量。

IsFixedSize

取得值,這個值表示 EntityParameterCollection 是否有固定大小。

IsReadOnly

取得值,這個值表示 EntityParameterCollection 是否為唯讀。

IsSynchronized

會得到一個表示是否 EntityParameterCollection 同步的值。

Item[Int32]

在指定的索引處得到 。EntityParameter

Item[String]

得到指定名稱的 。EntityParameter

SyncRoot

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

方法

名稱 Description
Add(EntityParameter)

將指定的 EntityParameter 物件 EntityParameterCollection 加入 。

Add(Object)

將指定的物件 EntityParameterCollection加入 。

Add(String, DbType, Int32)

在 中EntityParameter加入 aEntityParameterCollection,並包含參數名稱、資料型態和欄位長度。

Add(String, DbType)

在給定的參數名稱和資料型態中加入 a EntityParameterEntityParameterCollection 。

AddRange(Array)

在 的末尾 EntityParameterCollection 加上一組數值。

AddRange(EntityParameter[])

在 的末尾EntityParameterCollection加上一組EntityParameter數值。

AddWithValue(String, Object)

會為 的末尾 EntityParameterCollection加上一個值。

Clear()

移除所有EntityParameter物件。EntityParameterCollection

Contains(Object)

判斷指定 Object 是否屬於此 EntityParameterCollection 。

Contains(String)

判斷指定 EntityParameter 是否屬於此 EntityParameterCollection 。

CopyTo(Array, Int32)

將所有電流EntityParameterCollection元素從指定的目的Array索引起點複製到指定的一維Array。

CopyTo(EntityParameter[], Int32)

從指定的目的索引開始,將所有電流 EntityParameterCollection 元素複製到指定的 EntityParameterCollection 索引。

GetEnumerator()

回傳一個遍歷 的 EntityParameterCollection 枚舉子。

IndexOf(EntityParameter)

取得集合中指定 EntityParameter 位置。

IndexOf(Object)

取得集合中指定 Object 位置。

IndexOf(String)

取得指定 EntityParameter 名稱的指定地點。

Insert(Int32, EntityParameter)

在指定的索引處插入物件EntityParameterEntityParameterCollection。

Insert(Int32, Object)

在指定的索引處插入 。ObjectEntityParameterCollection

Remove(EntityParameter)

將指定的 EntityParameter 資料從集合中移除。

Remove(Object)

從集合中移除指定的參數。

RemoveAt(Int32)

在指定索引處移除 。EntityParameterEntityParameterCollection

RemoveAt(String)

在指定的參數名稱處移除 。EntityParameterEntityParameterCollection

適用於