PostSharp4.3//API Reference/Post­Sharp.​Patterns.​Recording Namespace/Operation Class/Operation Properties/Operation.​Operation­Descriptor Property
Operation.OperationDescriptor Property
Gets the IOperationDescriptor, which is used by the OperationFormatter to produce a human-readable description of the current operation.

Namespace: PostSharp.Patterns.Recording
Assembly: PostSharp.Patterns.Model (in PostSharp.Patterns.Model.dll) Version: 4.3.48.0 (4.3.48.0)
Syntax
C#
public virtual IOperationDescriptor OperationDescriptor { get; }

Property Value

Type: IOperationDescriptor
Remarks

By default, the OperationDescriptor property returns the current Operation.

When the Operation represents a user-defined scope, the property evaluates to an instance of the NamedOperationDescriptor class. When it represents a method scope, it evaluates to an instance of the MethodExecutionOperationDescriptor class.

See Also