SortedTreeTableTKey, TValueBeginEdit Method

Begins an edit of the current archive table.

Definition

Namespace: SnapDB.Snap.Storage
Assembly: SnapDB (in SnapDB.dll) Version: 1.0.102.0 -- Release Build+29075351d0e5aa4dea46a5c520805222f672dc2e
public SortedTreeTableEditor<TKey, TValue> BeginEdit()

Return Value

SortedTreeTableEditorTKey, TValue
The current status of the edit of the archive table.

Remarks

Concurrent editing of a file is not supported. Subsequent calls will throw an exception rather than blocking. This is to encourage proper synchronization at a higher layer. Wrap the return value of this function in a Using block so the dispose method is always called.

Example

using (ArchiveFile.ArchiveFileEditor editor = archiveFile.BeginEdit()) { editor.AddPoint(key, value); editor.AddPoint(key, value); editor.Commit(); }

See Also