This topic has not yet been rated Rate this topic

DbParameter Class

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).

Namespace:  System.Data.Common
Assembly:  System.Data (in System.Data.dll)
public abstract class DbParameter : MarshalByRefObject, 
	IDbDataParameter, IDataParameter

The DbParameter type exposes the following members.

  Name Description
Protected method Supported by the XNA Framework DbParameter Initializes a new instance of the DbParameter class.
Top
  Name Description
Public property Supported by the XNA Framework DbType Gets or sets the DbType of the parameter.
Public property Supported by the XNA Framework Direction Gets or sets a value that indicates whether the parameter is input-only, output-only, bidirectional, or a stored procedure return value parameter.
Public property Supported by the XNA Framework IsNullable Gets or sets a value that indicates whether the parameter accepts null values.
Public property Supported by the XNA Framework ParameterName Gets or sets the name of the DbParameter.
Public property Supported by the XNA Framework Size Gets or sets the maximum size, in bytes, of the data within the column.
Public property Supported by the XNA Framework SourceColumn Gets or sets the name of the source column mapped to the DataSet and used for loading or returning the Value.
Public property Supported by the XNA Framework 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.
Public property Supported by the XNA Framework SourceVersion Gets or sets the DataRowVersion to use when you load Value.
Public property Supported by the XNA Framework Value Gets or sets the value of the parameter.
Top
  Name Description
Public method 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.)
Public method Supported by the XNA Framework Equals(Object) Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected method Supported by the XNA Framework Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public method Supported by the XNA Framework GetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
Public method GetLifetimeService Retrieves the current lifetime service object that controls the lifetime policy for this instance. (Inherited from MarshalByRefObject.)
Public method Supported by the XNA Framework GetType Gets the Type of the current instance. (Inherited from Object.)
Public method InitializeLifetimeService Obtains a lifetime service object to control the lifetime policy for this instance. (Inherited from MarshalByRefObject.)
Protected method Supported by the XNA Framework MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Protected method MemberwiseClone(Boolean) Creates a shallow copy of the current MarshalByRefObject object. (Inherited from MarshalByRefObject.)
Public method Supported by the XNA Framework ResetDbType Resets the DbType property to its original settings.
Public method Supported by the XNA Framework ToString Returns a string that represents the current object. (Inherited from Object.)
Top
  Name Description
Explicit interface implemetation Private property Supported by the XNA Framework IDbDataParameter.Precision Indicates the precision of numeric parameters.
Explicit interface implemetation Private property Supported by the XNA Framework IDbDataParameter.Scale For a description of this member, see IDbDataParameter.Scale.
Top

.NET Framework

Supported in: 4, 3.5, 3.0, 2.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

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.
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Did you find this helpful?
(2000 characters remaining)
Community Content Add
Annotations FAQ