Επεξεργασία

Κοινή χρήση μέσω


IDataParameter.DbType Property

Definition

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.

Applies to