IDataParameter.DbType IDataParameter.DbType IDataParameter.DbType IDataParameter.DbType Property

定义

获取或设置参数的 DbTypeGets 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

属性值

DbType 值之一。One of the DbType values. 默认值为 StringThe default is String.

异常

注解

PrvDbType (其中 Prv 表示特定于提供程序的前缀), DbType并且已链接。The PrvDbType (where Prv represents the provider-specific prefix) and DbType are linked. 因此, DbType将 PrvDbType 更改为支持 PrvDbType。Therefore, setting the DbType changes the PrvDbType to a supporting PrvDbType.

有关支持的数据类型的列表, 请参阅相应的 .NET Framework 数据提供程序 PrvDbType 成员。For a list of the supported data types, see the appropriate .NET Framework data provider PrvDbType member. 有关详细信息, 请参阅DataAdapter 参数For more information, see DataAdapter Parameters.

适用于