PostSharp SDK6.7//Post­Sharp.​Sdk.​Code­Model Namespace/Metadata­Declaration Class/Metadata­Declaration Methods/Metadata­Declaration.​Get­Tag(T) Method

MetadataDeclaration.GetTag<T> Method

Gets a tag associated with the current declaration.

Namespace:  PostSharp.Sdk.CodeModel
Assembly:  PostSharp.Compiler.Engine (in PostSharp.Compiler.Engine.dll) Version: 6.7.10.0 (6.7.10.0)
Syntax
C#
public T GetTag<T>(
	TagId tagId
)

Parameters

tagId
Type: PostSharp.Sdk.CodeModel.TagId
Tag identifier.

Type Parameters

T

[Missing <typeparam name="T"/> documentation for "M:PostSharp.Sdk.CodeModel.MetadataDeclaration.GetTag``1(PostSharp.Sdk.CodeModel.TagId)"]

Return Value

Type: T
A tag value, or default(T) if no tag of type tagId is associated with the current declaration.

Implements

ITaggable.GetTag<T>(TagId)
See Also