New to Telerik Document Processing? Start a free 30-day trial

Provides a disposable scope that executes a begin action on creation and an end action on disposal, enabling batch update patterns.

Definition

Namespace:Telerik.Documents.Spreadsheet.Core

Assembly:Telerik.Windows.Documents.Spreadsheet.dll

Syntax:

C#
public sealed class UpdateScope : IDisposable

Inheritance: objectUpdateScope

Implements: IDisposable

Constructors

Initializes a new instance of the UpdateScope class, executing the begin action immediately.

C#
public UpdateScope(Action beginUpdateAction, Action endUpdateAction)
Parameters:beginUpdateActionAction

The begin update action.

endUpdateActionAction

The end update action.

Methods

Executes the end update action when the scope is disposed.

C#
public void Dispose()

Implements: IDisposable.Dispose()