MethodExecutionTag
Gets or sets user-defined state information whose lifetime is linked to the current method execution. Aspects derived from IOnMethodBoundaryAspect should use this property to save state information between different events (OnEntry(MethodExecutionArgs), OnExit(MethodExecutionArgs) and OnException(MethodExecutionArgs)).
Declaration
public object MethodExecutionTag { get; set; }Property Value
| Type | Description |
|---|---|
| object |
Remarks
note
As a result of weaving optimizations, the value of this property may appear as null in a debugger.
If you need to inspect the value at runtime, consider disabling aspect optimizations in the debug build configuration.