PostSharp SDK 2023.0 / / Class Reference / Post­Sharp.​Sdk.​Aspect­Infrastructure Namespace / Method­Mapping Class / Method­Mapping Methods / Method­Mapping.​Define­Local­Storage Method

MethodMapping.DefineLocalStorage Method

[Missing <summary> documentation for "M:PostSharp.Sdk.AspectInfrastructure.MethodMapping.DefineLocalStorage(PostSharp.Sdk.CodeModel.ITypeSignature,PostSharp.Sdk.CodeModel.InstructionBlock,System.String,System.Boolean)"]

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 virtual ILocalStorage DefineLocalStorage(
	ITypeSignature type,
	InstructionBlock instructionBlock,
	string name = null,
	bool longLived = true
)

Parameters

type
Type: PostSharp.Sdk.CodeModel.ITypeSignature

[Missing <param name="type"/> documentation for "M:PostSharp.Sdk.AspectInfrastructure.MethodMapping.DefineLocalStorage(PostSharp.Sdk.CodeModel.ITypeSignature,PostSharp.Sdk.CodeModel.InstructionBlock,System.String,System.Boolean)"]

instructionBlock
Type: PostSharp.Sdk.CodeModel.InstructionBlock

[Missing <param name="instructionBlock"/> documentation for "M:PostSharp.Sdk.AspectInfrastructure.MethodMapping.DefineLocalStorage(PostSharp.Sdk.CodeModel.ITypeSignature,PostSharp.Sdk.CodeModel.InstructionBlock,System.String,System.Boolean)"]

name (Optional)
Type: System.String

[Missing <param name="name"/> documentation for "M:PostSharp.Sdk.AspectInfrastructure.MethodMapping.DefineLocalStorage(PostSharp.Sdk.CodeModel.ITypeSignature,PostSharp.Sdk.CodeModel.InstructionBlock,System.String,System.Boolean)"]

longLived (Optional)
Type: System.Boolean

[Missing <param name="longLived"/> documentation for "M:PostSharp.Sdk.AspectInfrastructure.MethodMapping.DefineLocalStorage(PostSharp.Sdk.CodeModel.ITypeSignature,PostSharp.Sdk.CodeModel.InstructionBlock,System.String,System.Boolean)"]

Return Value

Type: ILocalStorage

[Missing <returns> documentation for "M:PostSharp.Sdk.AspectInfrastructure.MethodMapping.DefineLocalStorage(PostSharp.Sdk.CodeModel.ITypeSignature,PostSharp.Sdk.CodeModel.InstructionBlock,System.String,System.Boolean)"]

Implements

ILocalStorageProvider.DefineLocalStorage(ITypeSignature, InstructionBlock, String, Boolean)
See Also