PostSharp SDK 6.10 / / Class Reference / Post­Sharp.​Sdk.​Code­Model Namespace / IMetadata­Declaration Interface

IMetadataDeclaration Interface

Defines the semantics of a metadata declaration, i.e. a declaration with a token.

Namespace:  PostSharp.Sdk.CodeModel
Assembly:  PostSharp.Compiler.Engine (in PostSharp.Compiler.Engine.dll) Version: 6.10.14.0 (6.10.14.0)
Syntax
C#
public interface IMetadataDeclaration : IDeclaration, 
	IElement, IModuleElement, ITaggable

The IMetadataDeclaration type exposes the following members.

Properties
  NameDescription
Public propertyCustomAttributes
Gets the collection of custom attributes.
Public propertyDeclaringAssembly
Gets the declaring assembly.
(Inherited from IModuleElement.)
Public propertyDomain
Gets the Domain to which the current element belongs.
(Inherited from IElement.)
Public propertyMetadataToken
Gets the metadata token of the current declaration.
Public propertyModule
Gets the declaring module.
(Inherited from IModuleElement.)
Public propertyParent
Gets the direct parent of the current element.
(Inherited from IElement.)
Public propertyParentMember
Gets the parent member of the current declaration.
Public propertyParentType
Gets the parent type of the current declaration.
Methods
  NameDescription
Public methodGetReflectionObject
Gets the system, runtime object (Type, FieldInfo, MethodInfo, ParameterInfo, ...) corresponding to the current declaration.
Public methodGetTag<T>
Gets a tag associated with the current declaration.
(Inherited from ITaggable.)
Public methodGetTokenType
Gets the metadata token type of the current declaration.
Public methodSetTag<T>
Set a tag to the current declaration.
(Inherited from ITaggable.)
Public methodTranslate
Translates the current element so that it can be used in a given module.
(Inherited from IModuleElement.)
See Also