Méthode Api.JetAttachDatabase
Joint un fichier de base de données à utiliser avec une base de données instance. Pour pouvoir utiliser la base de données, vous devez l’ouvrir par la suite avec JetOpenDatabase(JET_SESID, String, String, JET_DBID, OpenDatabaseGrbit) .
Namespace:Microsoft.Isam.Esent.Interop
Assemblée: Microsoft.Isam.Esent.Interop (en Microsoft.Isam.Esent.Interop.dll)
Syntaxe
'Declaration
Public Shared Function JetAttachDatabase ( _
sesid As JET_SESID, _
database As String, _
grbit As AttachDatabaseGrbit _
) As JET_wrn
'Usage
Dim sesid As JET_SESID
Dim database As String
Dim grbit As AttachDatabaseGrbit
Dim returnValue As JET_wrn
returnValue = Api.JetAttachDatabase(sesid, _
database, grbit)
public static JET_wrn JetAttachDatabase(
JET_SESID sesid,
string database,
AttachDatabaseGrbit grbit
)
Paramètres
sesid
Type : Microsoft.Isam.Esent.Interop.JET_SESIDSession à utiliser.
database
Type : System.StringBase de données à attacher.
grbit
Type : Microsoft.Isam.Esent.Interop.AttachDatabaseGrbitOptions d’attachement.
Valeur retournée
Type : Microsoft.Isam.Esent.Interop.JET_wrn
Code d’avertissement ESENT.
Voir aussi
Informations de référence
Commentaires
https://aka.ms/ContentUserFeedback.
Bientôt disponible : Tout au long de 2024, nous allons supprimer progressivement GitHub Issues comme mécanisme de commentaires pour le contenu et le remplacer par un nouveau système de commentaires. Pour plus d’informations, consultezEnvoyer et afficher des commentaires pour