SqlParameter.SqlDbType 属性

定义

获取或设置参数的 SqlDbTypeGets or sets the SqlDbType of the parameter.

public:
 property System::Data::SqlDbType SqlDbType { System::Data::SqlDbType get(); void set(System::Data::SqlDbType value); };
public System.Data.SqlDbType SqlDbType { get; set; }
[System.Data.DataSysDescription("SqlParameter_SqlDbType")]
public System.Data.SqlDbType SqlDbType { get; set; }
[System.Data.Common.DbProviderSpecificTypeProperty(true)]
public System.Data.SqlDbType SqlDbType { get; set; }
member this.SqlDbType : System.Data.SqlDbType with get, set
[<System.Data.DataSysDescription("SqlParameter_SqlDbType")>]
member this.SqlDbType : System.Data.SqlDbType with get, set
[<System.Data.Common.DbProviderSpecificTypeProperty(true)>]
member this.SqlDbType : System.Data.SqlDbType with get, set
Public Property SqlDbType As SqlDbType

属性值

SqlDbType

SqlDbType 值之一。One of the SqlDbType values. 默认值为 NVarCharThe default is NVarChar.

属性

注解

SqlDbTypeDbType 已链接。The SqlDbType and DbType are linked. 因此,将 DbType 更改设置 SqlDbType 为支持 SqlDbTypeTherefore, setting the DbType changes the SqlDbType to a supporting SqlDbType.

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

有关流式处理的信息,请参阅 SqlClient 流支持For information about streaming, see SqlClient Streaming Support.

适用于

另请参阅