Document Solutions for Excel, .NET Edition | Document Solutions
GrapeCity.Documents.Excel Namespace / Workbook Class / ProcessTemplate Method / ProcessTemplate(CancellationToken) Method
The token to monitor for cancellation requests.
In This Topic
    ProcessTemplate(CancellationToken) Method
    In This Topic
    Start to process the template with global options and cancellation support.
    Syntax
    public void ProcessTemplate( 
       System.Threading.CancellationToken cancellationToken
    )

    Parameters

    cancellationToken
    The token to monitor for cancellation requests.
    Exceptions
    ExceptionDescription
    Throws when the System.Threading.CancellationToken was canceled.
    Remarks
    The caller must decide whether to accept the partially expanded template or revert to the previous state. If the caller needs to revert to the previous state, it must serialize the workbook before calling this method, then deserialize the workbook after canceling the operation.
    See Also