Open sandboxFocus

Class OperationCollection

Read-only collection of operations (Operation). The class is exposed on the UndoOperations and RedoOperations properties.

Inheritance
OperationCollection
Namespace: PostSharp.Patterns.Recording
Assembly: PostSharp.Patterns.Model.dll
Syntax
[Obsolete("[Recordable] aspect and its components are deprecated and will be removed in a future version.", false)]
public sealed class OperationCollection : ICollection<Operation>, IEnumerable<Operation>, IEnumerable, INotifyPropertyChanged, INotifyCollectionChanged
Remarks

In addition to the traditional collection members, this class exposes the Trim(int) method, which allows you to trim the collection of UndoOperations or RedoOperations.

Properties

Name Description
Count
IsReadOnly

Methods

Name Description
CopyTo(Operation[], int)
GetEnumerator()
Trim(RestorePoint)

Trims the current collection to a specified RestorePoint.

Trim(int)

Trims the current collection to a given maximum number of operations.

Events

Name Description
CollectionChanged
PropertyChanged

Occurs when the value of a property of the current object changes.