VistaDB 5






VistaDB.Provider Namespace > VistaDBConnection Class > PackDatabase Method : PackDatabase(String,OperationCallbackDelegate) Method
Full database file name including path unless the database is in the local directory.
Operation Information delegate method for feedback from pack progress. You may pass null or Nothing meaning there is no delegate.
PackDatabase(String,OperationCallbackDelegate) Method
Supports callbacks for progress reporting
Syntax
'Declaration
 
Public Overloads Shared Sub PackDatabase( _
   ByVal fileName As System.String, _
   ByVal operationCallback As OperationCallbackDelegate _
) 
'Usage
 
Dim fileName As System.String
Dim operationCallback As OperationCallbackDelegate
 
VistaDBConnection.PackDatabase(fileName, operationCallback)
public static void PackDatabase( 
   System.string fileName,
   OperationCallbackDelegate operationCallback
)
public procedure PackDatabase( 
    fileName: System.String;
    operationCallback: OperationCallbackDelegate
); static; 
public static function PackDatabase( 
   fileName : System.String,
   operationCallback : OperationCallbackDelegate
);
public: static void PackDatabase( 
   System.string* fileName,
   OperationCallbackDelegate* operationCallback
) 
public:
static void PackDatabase( 
   System.String^ fileName,
   OperationCallbackDelegate^ operationCallback
) 

Parameters

fileName
Full database file name including path unless the database is in the local directory.
operationCallback
Operation Information delegate method for feedback from pack progress. You may pass null or Nothing meaning there is no delegate.
Remarks
You may be prompted on connection open to pack the database if the file format has changed.
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also