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::Framework::DataParameter
public class AdoDotNetParameter : Microsoft.VisualStudio.Data.Framework.DataParameter
type AdoDotNetParameter = class
    inherit DataParameter
Public Class AdoDotNetParameter
Inherits DataParameter
Inheritance
AdoDotNetParameter

Constructors

AdoDotNetParameter(DbParameter)

Initializes a new instance of the AdoDotNetParameter class with a parameter object.

AdoDotNetParameter(DbParameter, Boolean)

Initializes a new instance of the AdoDotNetParameter class with a parameter object and an indication of whether the parameter is derived using the DeriveParameters(String, DataCommandType, Int32) method.

AdoDotNetParameter(String)

Initializes a new instance of the AdoDotNetParameter class with a parameter string value.

AdoDotNetParameter(String, Boolean)

Initializes a new instance of the AdoDotNetParameter class with the name of the data provider and an indication of whether the parameter is derived using the DeriveParameters(String, DataCommandType, Int32) method.

Fields

NullSize

A public size constant holding the value of zero.

(Inherited from DataParameter)

Properties

DefaultSize

Gets an integer value specifying the default size for the current parameter type.

(Inherited from DataParameter)
Descriptor

Gets information that describes the data parameter.

(Inherited from DataParameter)
Direction

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

(Inherited from DataParameter)
HasDescriptor

Gets a value indicating whether the data parameter exposes its IVsDataParameterDescriptor implementation through the Descriptor property.

IsDerived

Gets a Boolean value that indicates whether the current parameter was derived from the data source.

(Inherited from DataParameter)
IsFixedSize

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

IsNullable

Gets a Boolean value indicating whether the current parameter can have a null value provided that it is derived.

(Inherited from DataParameter)
IsOptional

Gets a Boolean value indicating whether the current parameter is optional, provided that it is derived.

(Inherited from DataParameter)
Name

Gets or sets the string literal name of the current parameter.

(Inherited from DataParameter)
Parameter

Gets the DbParameter object representing the command parameter.

Size

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

(Inherited from DataParameter)
Type

Gets or sets the data source–specific type of the parameter.

(Inherited from DataParameter)
Value

Gets or sets the value of the parameter.

(Inherited from DataParameter)

Methods

GetDirectionCore()

Retrieves the parameter direction.

GetIsNullableCore()

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

GetIsOptionalCore()

Retrieves a Boolean value indicating whether the parameter is optional.

(Inherited from DataParameter)
GetNameCore()

Retrieves the name of the parameter.

GetSizeCore()

Retrieves an integer value specifying the size of the parameter.

GetTypeCore()

Retrieves the data source–specific type of the parameter.

GetTypeFrom(Object)

Maps the value type to a DbType value and returns the string equivalent.

GetValueCore()

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)
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 parse the input string value into the correct type by using primitive type conversions (like Byte.Parse and Int32.Parse).

SetDirectionCore(DataParameterDirection)

Sets the direction of the parameter by using the DataParameterDirection enumeration.

SetNameCore(String)

Sets the name of the parameter.

SetSizeCore(Int32)

Sets an integer value specifying the size of this parameter.

SetTypeCore(String)

Attempts to parse the string type into a DbType enumeration value by using Enum.Parse. If this fails, the method assumes DbType.Object as the correct DbType.

SetValueCore(Object)

Sets the value of the parameter.

ToString()

Retrieves a string representation of the value of the current parameter.

(Inherited from DataParameter)
TryConvertValue(Object, String)

Attempts to convert the specified value to the specified type.

(Inherited from DataParameter)

Applies to