JetBeginSession() public static method

Initialize a new ESENT session.
public static JetBeginSession ( JET_INSTANCE instance, JET_SESID &sesid, string username, string password ) : void
instance JET_INSTANCE The initialized instance to create the session in.
sesid JET_SESID Returns the created session.
username string The parameter is not used.
password string The parameter is not used.
return void
Exemplo n.º 1
0
 /// <summary>
 /// Initializes a new instance of the Session class. A new
 /// JET_SESSION is allocated from the given instance.
 /// </summary>
 /// <param name="instance">The instance to start the session in.</param>
 public Session(JET_INSTANCE instance)
 {
     Api.JetBeginSession(instance, out this.sesid, null, null);
     this.ResourceWasAllocated();
 }
Exemplo n.º 2
0
 /// <summary>
 /// Initialize a new ESENT session.
 /// </summary>
 /// <param name="instance">The initialized instance to create the session in.</param>
 /// <param name="sesid">Returns the created session.</param>
 public static void BeginSession(JET_INSTANCE instance, out JET_SESID sesid)
 {
     Api.JetBeginSession(instance, out sesid, null, null);
 }