This documentation is archived and is not being maintained.
DbParameter Class
Visual Studio 2010
Represents a parameter to a DbCommand and optionally, its mapping to a DataSet column. For more information on parameters, see Configuring Parameters and Parameter Data Types (ADO.NET).
Assembly: System.Data (in System.Data.dll)
The DbParameter type exposes the following members.
| Name | Description | |
|---|---|---|
![]() ![]() | DbType | Gets or sets the DbType of the parameter. |
![]() ![]() | Direction | Gets or sets a value that indicates whether the parameter is input-only, output-only, bidirectional, or a stored procedure return value parameter. |
![]() ![]() | IsNullable | Gets or sets a value that indicates whether the parameter accepts null values. |
![]() ![]() | ParameterName | Gets or sets the name of the DbParameter. |
![]() ![]() | Size | Gets or sets the maximum size, in bytes, of the data within the column. |
![]() ![]() | SourceColumn | Gets or sets the name of the source column mapped to the DataSet and used for loading or returning the Value. |
![]() ![]() | SourceColumnNullMapping | Sets or gets a value which indicates whether the source column is nullable. This allows DbCommandBuilder to correctly generate Update statements for nullable columns. |
![]() ![]() | SourceVersion | Gets or sets the DataRowVersion to use when you load Value. |
![]() ![]() | Value | Gets or sets the value of the parameter. |
| Name | Description | |
|---|---|---|
![]() | CreateObjRef | Creates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object. (Inherited from MarshalByRefObject.) |
![]() ![]() | Equals(Object) | Determines whether the specified Object is equal to the current Object. (Inherited from Object.) |
![]() ![]() | Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) |
![]() ![]() | GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) |
![]() | GetLifetimeService | Retrieves the current lifetime service object that controls the lifetime policy for this instance. (Inherited from MarshalByRefObject.) |
![]() ![]() | GetType | Gets the Type of the current instance. (Inherited from Object.) |
![]() | InitializeLifetimeService | Obtains a lifetime service object to control the lifetime policy for this instance. (Inherited from MarshalByRefObject.) |
![]() ![]() | MemberwiseClone() | Creates a shallow copy of the current Object. (Inherited from Object.) |
![]() | MemberwiseClone(Boolean) | Creates a shallow copy of the current MarshalByRefObject object. (Inherited from MarshalByRefObject.) |
![]() ![]() | ResetDbType | Resets the DbType property to its original settings. |
![]() ![]() | ToString | Returns a string that represents the current object. (Inherited from Object.) |
| Name | Description | |
|---|---|---|
![]() ![]() ![]() | IDbDataParameter::Precision | Indicates the precision of numeric parameters. |
![]() ![]() ![]() | IDbDataParameter::Scale | For a description of this member, see IDbDataParameter::Scale. |
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Show:

