PostSharp SDK 6.10 / / Class Reference / Post­Sharp.​Sdk.​Aspect­Infrastructure Namespace / IMethod­Body­Transformation­Instance Interface / IMethod­Body­Transformation­Instance Methods / IMethod­Body­Transformation­Instance.​Get­Options Method

IMethodBodyTransformationInstance.GetOptions Method

Gets options that allow the aspect framework to predict the behavior of the Implement(MethodBodyTransformationContext) method.

Namespace:  PostSharp.Sdk.AspectInfrastructure
Assembly:  PostSharp.Compiler.Engine (in PostSharp.Compiler.Engine.dll) Version: 6.10.14.0 (6.10.14.0)
Syntax
C#
MethodBodyTransformationOptions GetOptions(
	MetadataDeclaration originalTargetElement,
	MethodSemantics semantic
)

Parameters

originalTargetElement
Type: PostSharp.Sdk.CodeModel.MetadataDeclaration
Element of code to which the transformation will be applied.
semantic
Type: PostSharp.Sdk.CodeModel.MethodSemantics
Semantic of the method (if the method is a member of a property or event).

Return Value

Type: MethodBodyTransformationOptions
Options that allow the aspect framework to predict the behavior of the Implement(MethodBodyTransformationContext) method
See Also