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
派生
実装

コンストラクター

名前 説明
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)

指定したValueを持つDbParameterがコレクションに含まれているかどうかを示します。

Contains(String)

指定した名前の 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)

IEnumerableIQueryableに変換します。

Cast<TResult>(IEnumerable)

IEnumerable の要素を指定した型にキャストします。

OfType<TResult>(IEnumerable)

指定した型に基づいて、IEnumerable の要素をフィルター処理します。

適用対象

こちらもご覧ください