PostSharp 2023.0 / / Post­Sharp Documentation / API Reference / Post­Sharp.​Patterns.​Recording Namespace / Recordable­Attribute Class / Recordable­Attribute Properties / Recordable­Attribute.​Auto­Record Property

RecordableAttribute.AutoRecord Property

Determines whether changes in this object must be recorded as soon as the object constructor has completed.

Namespace:  PostSharp.Patterns.Recording
Assembly:  PostSharp.Patterns.Model (in PostSharp.Patterns.Model.dll) Version: 2023.0.3.0 (2023.0.3.0)
public bool AutoRecord { get; set; }

Property Value

Type: Boolean

If this property is set to true, a Recorder will be automatically assigned to the target instance using the OperationFormatter. Set this property to false if you need to assign the Recorder manually.

See Also