Export (0) Print
Expand All

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.

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.

  NameDescription
Protected methodSupported by the XNA FrameworkDbParameterInitializes a new instance of the DbParameter class.
Top

  NameDescription
Public propertySupported by the XNA FrameworkDbTypeGets or sets the DbType of the parameter.
Public propertySupported by the XNA FrameworkDirectionGets or sets a value that indicates whether the parameter is input-only, output-only, bidirectional, or a stored procedure return value parameter.
Public propertySupported by the XNA FrameworkIsNullableGets or sets a value that indicates whether the parameter accepts null values.
Public propertySupported by the XNA FrameworkParameterNameGets or sets the name of the DbParameter.
Public propertySupported by the XNA FrameworkSizeGets or sets the maximum size, in bytes, of the data within the column.
Public propertySupported by the XNA FrameworkSourceColumnGets or sets the name of the source column mapped to the DataSet and used for loading or returning the Value.
Public propertySupported by the XNA FrameworkSourceColumnNullMappingSets or gets a value which indicates whether the source column is nullable. This allows DbCommandBuilder to correctly generate Update statements for nullable columns.
Public propertySupported by the XNA FrameworkSourceVersionGets or sets the DataRowVersion to use when you load Value.
Public propertySupported by the XNA FrameworkValueGets or sets the value of the parameter.
Top

  NameDescription
Public methodCreateObjRefCreates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object. (Inherited from MarshalByRefObject.)
Public methodSupported by the XNA FrameworkEquals(Object)Determines whether the specified object is equal to the current object. (Inherited from Object.)
Protected methodSupported by the XNA FrameworkFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public methodSupported by the XNA FrameworkGetHashCodeServes as the default hash function. (Inherited from Object.)
Public methodGetLifetimeServiceRetrieves the current lifetime service object that controls the lifetime policy for this instance. (Inherited from MarshalByRefObject.)
Public methodSupported by the XNA FrameworkGetTypeGets the Type of the current instance. (Inherited from Object.)
Public methodInitializeLifetimeServiceObtains a lifetime service object to control the lifetime policy for this instance. (Inherited from MarshalByRefObject.)
Protected methodSupported by the XNA FrameworkMemberwiseClone()Creates a shallow copy of the current Object. (Inherited from Object.)
Protected methodMemberwiseClone(Boolean)Creates a shallow copy of the current MarshalByRefObject object. (Inherited from MarshalByRefObject.)
Public methodSupported by the XNA FrameworkResetDbTypeResets the DbType property to its original settings.
Public methodSupported by the XNA FrameworkToStringReturns a string that represents the current object. (Inherited from Object.)
Top

  NameDescription
Explicit interface implemetationPrivate propertySupported by the XNA FrameworkIDbDataParameter.PrecisionIndicates the precision of numeric parameters.
Explicit interface implemetationPrivate propertySupported by the XNA FrameworkIDbDataParameter.ScaleFor a description of this member, see IDbDataParameter.Scale.
Top

.NET Framework

Supported in: 4.5, 4, 3.5, 3.0, 2.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

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.
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft