SqlCeParameter.SqlDbType Property
Obtient ou définit le SqlDbType du paramètre.
Espace de noms: System.Data.SqlServerCe
Assembly: System.Data.SqlServerCe (dans system.data.sqlserverce.dll)
Syntaxe
'Déclaration
<DbProviderSpecificTypePropertyAttribute(True)> _
Public Property SqlDbType As SqlDbType
[DbProviderSpecificTypePropertyAttribute(true)]
public SqlDbType SqlDbType { get; set; }
[DbProviderSpecificTypePropertyAttribute(true)]
public:
property SqlDbType SqlDbType {
SqlDbType get ();
void set (SqlDbType value);
}
/** @property */
public SqlDbType get_SqlDbType ()
/** @property */
public void set_SqlDbType (SqlDbType value)
public function get SqlDbType () : SqlDbType
public function set SqlDbType (value : SqlDbType)
Valeur de propriété
Une des valeurs de SqlDbType. Le type par défaut est NVarChar.
Remarques
SqlDbType et DbType sont liés. Par conséquent, la définition de DbType remplace SqlDbType par un SqlDbType pris en charge.
Le fournisseur .NET de SQL Server Compact 3.5 prend en charge les SqlDbTypes suivants :
SqlDbType.TinyInt
SqlDbType.SmallInt
SqlDbType.Int
SqlDbType.BigInt
SqlDbType.Real
SqlDbType.Float
SqlDbType.Money
SqlDbType.Bit
SqlDbType.Binary
SqlDbType.VarBinary
SqlDbType.UniqueIdentifier
SqlDbType.Image
SqlDbType.NText
SqlDbType.NChar
SqlDbType.NVarChar
SqlDbType.Decimal
SqlDbType.DateTime
Pour obtenir la liste des types de données pris en charge, consultez la propriété DbType appropriée.
Exemple
L'exemple suivant crée un SqlCeParameter et définit la propriété SqlDbType.
Dim param As New SqlCeParameter()
param.SqlDbType = SqlDbType.NText
SqlCeParameter param = new SqlCeParameter();
param.SqlDbType = SqlDbType.NText;
Sécurité des threads
Tout membre statique public (Partagé dans Microsoft Visual Basic) de ce type sont thread-safe. Tous les membres de l'instance ne sont pas garantis comme sûrs.
Plateformes
Plateformes de développement
Windows Vista, Windows Mobile 5.0, Windows XP Professional with Service Pack 2 (SP2), Windows Server 2003, Windows Mobile 2003 for Pocket PC, Windows CE 5.0
Informations sur la version
.NET Framework et NET Compact Framework
Pris en charge dans 3.5
.NET Framework
Pris en charge dans 3.0
.NET Compact Framework et .Net Framework
Pris en charge dans 2.0
Voir aussi
Référence
SqlCeParameter Class
SqlCeParameter Members
System.Data.SqlServerCe Namespace