PostSharpAPI ReferencePost­Sharp.​Patterns.​RecordingRecordable­AttributeIRecordable.​Has­Recorder
Open sandboxFocus

RecordableAttribute.IRecordable.HasRecorder Method

IRecordable.HasRecorder(Boolean)

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

Declaration
[RecordingScope]
[DebuggerAspectMethod]
[DebuggerAspectMethod]
bool IRecordable.HasRecorder(bool autoAttach)
Parameters
Type Name Description
Boolean autoAttach

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

Returns
Type Description
Boolean

true if the object is already attached to a Recorder or if autoAttach is true, otherwise false.

Implements
IRecordable.HasRecorder(Boolean)