MetadataReader Class

Definition

Reads metadata as defined by the ECMA 335 CLI specification.

public ref class MetadataReader sealed
public sealed class MetadataReader
type MetadataReader = class
Public NotInheritable Class MetadataReader
Inheritance
MetadataReader

Constructors

MetadataReader(Byte*, Int32)

Initializes a new instance of the MetadataReader class from the metadata stored at the given memory location.

MetadataReader(Byte*, Int32, MetadataReaderOptions)

Initializes a new instance of the MetadataReader class from the metadata stored at the given memory location.

MetadataReader(Byte*, Int32, MetadataReaderOptions, MetadataStringDecoder)

Initializes a new instance of the MetadataReader class from the metadata stored at the given memory location.

Properties

AssemblyFiles
AssemblyReferences
CustomAttributes
CustomDebugInformation
DebugMetadataHeader

Gets the information decoded from #Pdb stream, or null if the stream is not present.

DeclarativeSecurityAttributes
Documents
EventDefinitions
ExportedTypes
FieldDefinitions
ImportScopes
IsAssembly

Gets a value that indicates whether the metadata represents an assembly.

LocalConstants
LocalScopes
LocalVariables
ManifestResources
MemberReferences
MetadataKind

Gets the metadata kind.

MetadataLength

Gets the length of the underlying data.

MetadataPointer

Gets the pointer to the underlying data.

MetadataVersion

Gets the version string read from metadata header.

MethodDebugInformation
MethodDefinitions
Options

Gets the MetadataReaderOptions passed to the constructor.

PropertyDefinitions
StringComparer

Gets the comparer used to compare strings stored in metadata.

TypeDefinitions
TypeReferences
UTF8Decoder

Gets the decoder used by the reader to produce string instances from UTF8-encoded byte sequences.

Methods

Equals(Object)

Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetAssemblyDefinition()
GetAssemblyFile(AssemblyFileHandle)
GetAssemblyReference(AssemblyReferenceHandle)
GetBlobBytes(BlobHandle)
GetBlobContent(BlobHandle)
GetBlobReader(BlobHandle)
GetBlobReader(StringHandle)
GetConstant(ConstantHandle)
GetCustomAttribute(CustomAttributeHandle)
GetCustomAttributes(EntityHandle)
GetCustomDebugInformation(CustomDebugInformationHandle)
GetCustomDebugInformation(EntityHandle)
GetDeclarativeSecurityAttribute(DeclarativeSecurityAttributeHandle)
GetDocument(DocumentHandle)
GetEventDefinition(EventDefinitionHandle)
GetExportedType(ExportedTypeHandle)
GetFieldDefinition(FieldDefinitionHandle)
GetGenericParameter(GenericParameterHandle)
GetGenericParameterConstraint(GenericParameterConstraintHandle)
GetGuid(GuidHandle)
GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetImportScope(ImportScopeHandle)
GetInterfaceImplementation(InterfaceImplementationHandle)
GetLocalConstant(LocalConstantHandle)
GetLocalScope(LocalScopeHandle)
GetLocalScopes(MethodDebugInformationHandle)
GetLocalScopes(MethodDefinitionHandle)
GetLocalVariable(LocalVariableHandle)
GetManifestResource(ManifestResourceHandle)
GetMemberReference(MemberReferenceHandle)
GetMethodDebugInformation(MethodDebugInformationHandle)
GetMethodDebugInformation(MethodDefinitionHandle)
GetMethodDefinition(MethodDefinitionHandle)
GetMethodImplementation(MethodImplementationHandle)
GetMethodSpecification(MethodSpecificationHandle)
GetModuleDefinition()
GetModuleReference(ModuleReferenceHandle)
GetNamespaceDefinition(NamespaceDefinitionHandle)
GetNamespaceDefinitionRoot()
GetParameter(ParameterHandle)
GetPropertyDefinition(PropertyDefinitionHandle)
GetStandaloneSignature(StandaloneSignatureHandle)
GetString(DocumentNameBlobHandle)
GetString(NamespaceDefinitionHandle)
GetString(StringHandle)
GetType()

Gets the Type of the current instance.

(Inherited from Object)
GetTypeDefinition(TypeDefinitionHandle)
GetTypeReference(TypeReferenceHandle)
GetTypeSpecification(TypeSpecificationHandle)
GetUserString(UserStringHandle)
MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
ToString()

Returns a string that represents the current object.

(Inherited from Object)

Extension Methods

GetEditAndContinueLogEntries(MetadataReader)
GetEditAndContinueMapEntries(MetadataReader)
GetHeapMetadataOffset(MetadataReader, HeapIndex)
GetHeapSize(MetadataReader, HeapIndex)
GetNextHandle(MetadataReader, BlobHandle)
GetNextHandle(MetadataReader, StringHandle)
GetNextHandle(MetadataReader, UserStringHandle)
GetTableMetadataOffset(MetadataReader, TableIndex)
GetTableRowCount(MetadataReader, TableIndex)
GetTableRowSize(MetadataReader, TableIndex)
GetTypesWithEvents(MetadataReader)
GetTypesWithProperties(MetadataReader)
ResolveSignatureTypeKind(MetadataReader, EntityHandle, Byte)
GetHeapOffset(MetadataReader, Handle)
GetRowNumber(MetadataReader, EntityHandle)
GetToken(MetadataReader, EntityHandle)
GetToken(MetadataReader, Handle)

Applies to