Mono.Data.Sqlite.SqliteConnection.ChangePassword C# (CSharp) Method

ChangePassword() public method

Change the password (or assign a password) to an open database.
No readers or writers may be active for this process. The database must already be open and if it already was password protected, the existing password must already have been supplied.
public ChangePassword ( byte newPassword ) : void
newPassword byte The new password to assign to the database
return void
    public void ChangePassword(byte[] newPassword)
    {
      if (_connectionState != ConnectionState.Open)
        throw new InvalidOperationException("Database must be opened before changing the password.");

      _sql.ChangePassword(newPassword);
    }

Same methods

SqliteConnection::ChangePassword ( string newPassword ) : void