PostSharp6.6//API Reference/Post­Sharp.​Patterns.​Recording Namespace/IRecordable Interface/IRecordable Methods/IRecordable.​Has­Recorder Method

IRecordable.HasRecorder Method

Determines whether the current object is attached to a Recorder, if not, optionally attaches the object to the default Recorder.

Namespace:  PostSharp.Patterns.Recording
Assembly:  PostSharp.Patterns.Model (in PostSharp.Patterns.Model.dll) Version: 6.6.7.0 (6.6.7.0)
Syntax
C#
bool HasRecorder(
	bool autoAttach
)

Parameters

autoAttach
Type: System.Boolean
true if the current object should be automatically attached to the default Recorder if it is not yet attached, otherwise false.

Return Value

Type: Boolean
true if the object is already attached to a Recorder or if autoAttach is true, otherwise false.
See Also