PostSharp SDK 2023.0 / / Class Reference / Post­Sharp.​Sdk.​Aspect­Infrastructure Namespace / Method­Body­Transformation­Context Class / Method­Body­Transformation­Context Methods / Method­Body­Transformation­Context.​Get­Pipeline­State­Item Method

MethodBodyTransformationContext.GetPipelineStateItem Method

Gets state information that has been previously stored with the method SetPipelineStateItem(Object, Object).

Namespace:  PostSharp.Sdk.AspectInfrastructure
Assembly:  PostSharp.Compiler.Engine (in PostSharp.Compiler.Engine.dll) Version: 2023.0.3.0 (2023.0.3.0)
Syntax
C#
public Object GetPipelineStateItem(
	Object key
)

Parameters

key
Type: System.Object
Shared identifier of the state item.

Return Value

Type: Object
The item corresponding to key if it was added by a previous transformation, otherwise null.
See Also