dotConnect Universal Documentation
Devart.Common Namespace / DbDump Class / BeginBackup Method / BeginBackup(TextWriter) Method
The System.IO.TextWriter to write the script to.

In This Topic
    BeginBackup(TextWriter) Method
    In This Topic
    Starts an asynchronous invocation of a Backup(TextWriter) method.
    Syntax
    'Declaration
     
    Public Overloads Function BeginBackup( _
       ByVal writer As TextWriter _
    ) As IAsyncResult
    public IAsyncResult BeginBackup( 
       TextWriter writer
    )

    Parameters

    writer
    The System.IO.TextWriter to write the script to.

    Return Value

    An System.IAsyncResult interface that represents the asynchronous operation started by calling this method.
    Remarks

    BeginBackup(TextWriter) method enables you to perform a backup operation without having current thread blocked. In other words, your program can continue execution while the backup runs in background so you do not have to wait for it.

    To start the backup operation, you have to call BeginBackup(TextWriter) method, which in turn invokes appropriate actions in another thread. Return value of this method must be assigned to an System.IAsyncResult object. After executing this method, the program flow continues.

    When you are ready to finish the backup operation, call EndBackup. If at the moment you call this function the backup has not yet been finished, application stops and waits till the function returns.

    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