Represents a parameter to a Command object, and optionally, its mapping to System.Data.DataSet columns; and is implemented by .NET Framework data providers that access data sources.

See Also: IDataParameter Members


public interface IDataParameter


The System.Data.IDataParameter interface allows an inheriting class to implement a Parameter class, which represents a parameter to a Command object. For more information about Parameter classes, see [<topic://cpconusingstoredprocedureswithcommand>].

An application does not create an instance of the System.Data.IDataParameter interface directly, but creates an instance of a class that inherits System.Data.IDataParameter.

Classes that inherit System.Data.IDataParameter must implement the inherited members, and typically define additional members to add provider-specific functionality. For example, the System.Data.IDataParameter interface defines the IDataParameter.DbType property. In turn, the System.Data.OleDb.OleDbParameter class inherits this property, and also defines the System.Data.OleDb.OleDbParameter.OleDbType property.


Namespace: System.Data
Assembly: System.Data (in System.Data.dll)
Assembly Versions: 1.0.3300.0, 1.0.5000.0,