PostSharp 6.5 / / Post­Sharp Documentation / API Reference / Post­Sharp.​Patterns.​Recording Namespace / Operation­Collection Class / Operation­Collection Methods / Operation­Collection.​Trim Method / Operation­Collection.​Trim Method (Int32)

OperationCollection.Trim Method (Int32)

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

Namespace:  PostSharp.Patterns.Recording
Assembly:  PostSharp.Patterns.Model (in PostSharp.Patterns.Model.dll) Version: 6.5.19.0 (6.5.19.0)
Syntax
C#
public void Trim(
	int count
)

Parameters

count
Type: System.Int32
The maximal number of operations to keep in the collection.
Remarks
Note Note
The UndoOperations collection is automatically trimmed to the value of MaximumOperationsCount property.
See Also