DbParameter Class

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

NameDescription
System_CAPS_protmethodDbParameter()

Initializes a new instance of the DbParameter class.

NameDescription
System_CAPS_pubpropertyDbType

Gets or sets the DbType of the parameter.

System_CAPS_pubpropertyDirection

Gets or sets a value that indicates whether the parameter is input-only, output-only, bidirectional, or a stored procedure return value parameter.

System_CAPS_pubpropertyIsNullable

Gets or sets a value that indicates whether the parameter accepts null values.

System_CAPS_pubpropertyParameterName

Gets or sets the name of the DbParameter.

System_CAPS_pubpropertyPrecision

[Supported in the .NET Framework 4.5.1 and later versions]

Gets or sets the maximum number of digits used to represent the Value property.

System_CAPS_pubpropertyScale

[Supported in the .NET Framework 4.5.1 and later versions]

Gets or sets the number of decimal places to which Value is resolved.

System_CAPS_pubpropertySize

Gets or sets the maximum size, in bytes, of the data within the column.

System_CAPS_pubpropertySourceColumn

Gets or sets the name of the source column mapped to the DataSet and used for loading or returning the Value.

System_CAPS_pubpropertySourceColumnNullMapping

Sets or gets a value which indicates whether the source column is nullable. This allows DbCommandBuilder to correctly generate Update statements for nullable columns.

System_CAPS_pubpropertySourceVersion

Gets or sets the DataRowVersion to use when you load Value.

System_CAPS_pubpropertyValue

Gets or sets the value of the parameter.

NameDescription
System_CAPS_pubmethodCreateObjRef(Type)

Creates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object.(Inherited from MarshalByRefObject.)

System_CAPS_pubmethodEquals(Object)

Determines whether the specified object is equal to the current object.(Inherited from Object.)

System_CAPS_protmethodFinalize()

Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.(Inherited from Object.)

System_CAPS_pubmethodGetHashCode()

Serves as the default hash function. (Inherited from Object.)

System_CAPS_pubmethodGetLifetimeService()

Retrieves the current lifetime service object that controls the lifetime policy for this instance.(Inherited from MarshalByRefObject.)

System_CAPS_pubmethodGetType()

Gets the Type of the current instance.(Inherited from Object.)

System_CAPS_pubmethodInitializeLifetimeService()

Obtains a lifetime service object to control the lifetime policy for this instance.(Inherited from MarshalByRefObject.)

System_CAPS_protmethodMemberwiseClone()

Creates a shallow copy of the current Object.(Inherited from Object.)

System_CAPS_protmethodMemberwiseClone(Boolean)

Creates a shallow copy of the current MarshalByRefObject object.(Inherited from MarshalByRefObject.)

System_CAPS_pubmethodResetDbType()

Resets the DbType property to its original settings.

System_CAPS_pubmethodToString()

Returns a string that represents the current object.(Inherited from Object.)

NameDescription
System_CAPS_pubinterfaceSystem_CAPS_privpropertyIDbDataParameter.Precision

Indicates the precision of numeric parameters.

System_CAPS_pubinterfaceSystem_CAPS_privpropertyIDbDataParameter.Scale

For a description of this member, see IDbDataParameter.Scale.

Universal Windows Platform
Available since 10
.NET Framework
Available since 2.0

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show:
© 2016 Microsoft