IDataParameter.DbType Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets or sets the DbType of the parameter.
public:
property System::Data::DbType DbType { System::Data::DbType get(); void set(System::Data::DbType value); };
public System.Data.DbType DbType { get; set; }
member this.DbType : System.Data.DbType with get, set
Public Property DbType As DbType
Property Value
One of the DbType values. The default is String.
Exceptions
The property was not set to a valid DbType.
Remarks
The PrvDbType (where Prv represents the provider-specific prefix) and DbType are linked. Therefore, setting the DbType changes the PrvDbType to a supporting PrvDbType.
For a list of the supported data types, see the appropriate .NET Framework data provider PrvDbType member. For more information, see DataAdapter Parameters.