VistaDB 6
VistaDB.DDA Namespace / IVistaDBOperationCallbackStatus Interface
Members Example


In This Topic
    IVistaDBOperationCallbackStatus Interface
    In This Topic
    Information messages passed by the engine during time consuming operations like pack and repair.
    Syntax
    'Declaration
     
    
    Public Interface IVistaDBOperationCallbackStatus 
    'Usage
     
    
    Dim instance As IVistaDBOperationCallbackStatus
    public interface IVistaDBOperationCallbackStatus 
    Example
    public void PackingFunction
    {
    	IVistaDBDDA DDAObj = VistaDB.DDA.VistaDBEngine.Connections.OpenDDA();
    	// You do not have to provide a path - Dot Net looks in the current working directory by default.
    	DDAObj.PackDatabase(fileName, null, false, new OperationCallbackDelegate(this.OnPackInfo));
    }
    	
    public void OnPackInfo( VistaDB.DDA.IVistaDBOperationCallbackInfo operationDelegate )
    {
    	if( operationDelegate.Progress < 0 )
    		return;
                
    	int ProgressPercent = operationDelegate.Progress;
                 
    	string ProgressText = String.Concat("Performing ",operationDelegate.Operation.ToString()," on ",operationDelegate.ObjectName.ToString(),":");
    }
    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