Partager via


AdoDotNetParameter Class

Definition

Represents a data parameter that is derived from a data source command, or that is passed with a command to a data source whose underlying technology is ADO.NET.

public ref class AdoDotNetParameter : Microsoft::VisualStudio::Data::DataParameter
public class AdoDotNetParameter : Microsoft.VisualStudio.Data.DataParameter
type AdoDotNetParameter = class
    inherit DataParameter
Public Class AdoDotNetParameter
Inherits DataParameter
Inheritance
AdoDotNetParameter

Constructors

AdoDotNetParameter(String, IDataParameter, Boolean)

Class constructor. Initializes a parameterized instance of the AdoDotNetParameter class, providing a parameter for a Command object, the name of the DDEX provider, and an indication whether the parameter is derived using the DeriveParameters(String, Int32, Int32) method.

AdoDotNetParameter(String, IDataParameter)

Class constructor. Initializes a parameterized instance of the AdoDotNetParameter class, providing a parameter for a Command object and the name of the DDEX provider.

AdoDotNetParameter(String)

Class constructor. Initializes a parameterized instance of the AdoDotNetParameter class, along with the name of the ADO.NET data provider being serviced by the connection.

Properties

DefaultPrecision

Retrieves a byte value specifying the default precision for the current parameter type.

(Inherited from DataParameter)
DefaultScale

Retrieves a byte value specifying the default scale for the current parameter type.

(Inherited from DataParameter)
DefaultSize

Retrieves and integer value specifying the default size for the current parameter type.

(Inherited from DataParameter)
Direction

Retrieves or sets a DataParameterDirection object specifying the direction of the parameter.

(Inherited from DataParameter)
IsDerived

Retrieves a Boolean value that indicates whether this parameter was derived from the data source.

(Inherited from DataParameter)
IsFixedPrecision

Retrieves a Boolean value indicating whether the precision for the current parameter type is fixed.

IsFixedScale

Retrieves a Boolean value indicating whether the scale for the current parameter type is fixed.

IsFixedSize

Retrieves a Boolean value indicating whether the size for the current parameter type is fixed.

IsNullable

Retrieves a Boolean value indicating whether this parameter can have a null value.

(Inherited from DataParameter)
IsOptional

Retrieves a Boolean value indicating whether this parameter is optional, in cases where this parameter is a derived parameter.

(Inherited from DataParameter)
Name

Retrieves or sets the string literal name of the parameter.

(Inherited from DataParameter)
Parameter

Retrieves the IDataParameter object representing the command parameter.

Precision

Retrieves or sets a byte value specifying the precision of the parameter.

(Inherited from DataParameter)
Scale

Retrieves or sets a byte value specifying the scale of the parameter.

(Inherited from DataParameter)
Size

Retrieves or sets an integer value specifying the size of the parameter.

(Inherited from DataParameter)
Type

Retrieves or sets the data-source-specific type of the parameter.

(Inherited from DataParameter)
Value

Retrieves or sets the value of the parameter.

(Inherited from DataParameter)

Methods

GetDirectionImpl()

Retrieves the parameter direction.

GetIsNullableImpl()

Retrieves a Boolean value indicating whether this parameter can be null.

GetIsOptionalImpl()

Retrieves a Boolean value indicating whether this parameter is optional.

(Inherited from DataParameter)
GetNameImpl()

Retrieves the name of the parameter.

GetPrecisionImpl()

Retrieves a byte value specifying the precision of the parameter.

GetScaleImpl()

Retrieves a byte value specifying the scale of the parameter.

GetSizeImpl()

Retrieves an integer value specifying the size of the parameter.

GetTypeFrom(Object)

Returns a AnsiString for a null or DBNull value; alternatively maps the value type to a DbType value and returns the string equivalent.

GetTypeImpl()

Retrieves the data-source-specific type of the parameter.

GetValueImpl()

Retrieves the value of a specified parameter.

IsSupportedDirection(DataParameterDirection)

Retrieves a Boolean value indicating whether the specified parameter direction is supported.

(Inherited from DataParameter)
IsValidType(String)

Retrieves a Boolean value indicating whether the specified data-source-specific type is a valid type.

OnDirectionChanged()

Called when the Direction property is changed to signal a change in the parameter direction.

(Inherited from DataParameter)
OnDirectionChanging(DataParameterDirection)

Called when the Direction property is about to change.

(Inherited from DataParameter)
OnNameChanged()

Called when the Name property has changed.

(Inherited from DataParameter)
OnNameChanging(String)

Called when the Name property is about to change.

(Inherited from DataParameter)
OnPrecisionChanged()

Called when the Precision property has changed.

(Inherited from DataParameter)
OnPrecisionChanging(Byte)

Called when the Precision property is about to change.

(Inherited from DataParameter)
OnScaleChanged()

Called when the Scale property has changed.

(Inherited from DataParameter)
OnScaleChanging(Byte)

Called when the Scale property is about to change.

(Inherited from DataParameter)
OnSizeChanged()

Called when the Size property has changed.

(Inherited from DataParameter)
OnSizeChanging(Int32)

Called when the Size property is about to change.

(Inherited from DataParameter)
OnTypeChanged()

Called when the Type property has changed.

(Inherited from DataParameter)
OnTypeChanging(String)

Called when the Type property is about to change.

(Inherited from DataParameter)
OnValueChanged()

Called when the Value property has changed.

(Inherited from DataParameter)
OnValueChanging(Object)

Called when the Value property is about to change.

(Inherited from DataParameter)
Parse(String)

Gets the DbType and attempts to parts the input string value into the correct type using primitive type conversions (like Byte.Parse and Int32.Parse).

SetDirectionImpl(DataParameterDirection)

Sets the direction of the parameter using the DataParameterDirection enumeration.

SetNameImpl(String)

Sets the name of the parameter.

SetPrecisionImpl(Byte)

Sets a byte value specifying the precision of the parameter.

SetScaleImpl(Byte)

Sets a byte value specifying the scale of the parameter.

SetSizeImpl(Int32)

Sets an integer value specifying the size of this parameter.

SetTypeImpl(String)

Attempts to parse the string type into a DbType enumeration value using Enum.Parse and if this fails it assumes DbType.Object as the correct DbType.

SetValueImpl(Object)

Sets the value of this parameter.

ToString()

Retrieves a string representation of the value of this parameter.

(Inherited from DataParameter)
TryConvertValue(Object, String)

Attempts to convert the specified value to the specified type.

(Inherited from DataParameter)

Applies to