PostSharp6.6//API Reference/Post­Sharp.​Patterns.​Recording Namespace/IRecordable Interface/IRecordable Properties/IRecordable.​Recorder Property

IRecordable.Recorder Property

Gets the recorder attached to the current object.

Namespace:  PostSharp.Patterns.Recording
Assembly:  PostSharp.Patterns.Model (in PostSharp.Patterns.Model.dll) Version: 6.6.7.0 (6.6.7.0)
Syntax
C#
Recorder Recorder { get; set; }

Property Value

Type: Recorder
Remarks

Getting this property automatically attaches the object to the default Recorder if it is not yet attached. Use the HasRecorder(Boolean) method with the false argument to determine whether the object is already attached to a recorder.

Note Note
Named code should not invoke the setting of this property.

When this property is set, it is not the responsibility of the class implementing this interface to also set the property to all children. This responsibility belongs to the Recorder class

See Also