次の方法で共有


IDataParameterCollection インターフェイス

Command オブジェクトに関連するすべてのパラメータのコレクションを表します。

名前空間:  Microsoft.ReportingServices.DataProcessing
アセンブリ:  Microsoft.ReportingServices.Interfaces (Microsoft.ReportingServices.Interfaces.dll)

構文

'宣言
Public Interface IDataParameterCollection _
    Inherits IEnumerable
'使用
Dim instance As IDataParameterCollection
public interface IDataParameterCollection : IEnumerable
public interface class IDataParameterCollection : IEnumerable
type IDataParameterCollection =  
    interface
        interface IEnumerable
    end
public interface IDataParameterCollection extends IEnumerable

説明

IDataParameterCollection インターフェイスは、パラメータ コレクションを実装することを可能にします。

アプリケーションは、IDataParameterCollection インターフェイスのインスタンスを直接作成するのではなく、IDataParameterCollection を実装するクラスのインスタンスを作成します。

IDataParameterCollection を実装するクラスは、必要なメンバを実装し、通常は、プロバイダ固有の機能を追加するための追加メンバを定義する必要があります。

SQL Server Reporting Services IDataParameterCollection インターフェイスは IEnumerable から継承され、Add メソッドの実装が必要です。IEnumerable では、GetEnumerator メソッドも実装する必要があります。IDataParameterCollection は IList の型であるため、ほとんどの実装に既存のクラスを使用できます。たとえば、DataParameter クラスが ArrayList を継承する場合、ArrayList.GetEnumerator メソッドの既定の実装を使用できます。

**注 :**IDataParameterCollection インターフェイスを実装する場合は、次のコンストラクタを実装する必要があります。

クラス

説明

PrvParameterCollection()

PrvDataParameterCollection クラスの新しいインスタンスを初期化します。