MetadataReader 類別

定義

如 ECMA 335 CLI 規格所定義,讀取中繼資料。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
繼承
MetadataReader

建構函式

MetadataReader(Byte*, Int32)

從儲存在給定記憶體位置的中繼資料,初始化 MetadataReader 類別的新執行個體。Initializes a new instance of the MetadataReader class from the metadata stored at the given memory location.

MetadataReader(Byte*, Int32, MetadataReaderOptions)

從儲存在給定記憶體位置的中繼資料,初始化 MetadataReader 類別的新執行個體。Initializes a new instance of the MetadataReader class from the metadata stored at the given memory location.

MetadataReader(Byte*, Int32, MetadataReaderOptions, MetadataStringDecoder)

從儲存在給定記憶體位置的中繼資料,初始化 MetadataReader 類別的新執行個體。Initializes a new instance of the MetadataReader class from the metadata stored at the given memory location.

屬性

AssemblyFiles
AssemblyReferences
CustomAttributes
CustomDebugInformation
DebugMetadataHeader

從 #Pdb 資料流取得已解碼資訊,如果資料流不存在則為 nullGets 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

取得傳遞至建構函式的 MetadataReaderOptionsGets the MetadataReaderOptions passed to the constructor.

PropertyDefinitions
StringComparer

取得用來比較儲存在中繼資料中之字串的比較子。Gets the comparer used to compare strings stored in metadata.

TypeDefinitions
TypeReferences
UTF8Decoder

取得讀取器用來從 UTF8 編碼位元組序列產生字串執行個體的解碼器。Gets the decoder used by the reader to produce string instances from UTF8-encoded byte sequences.

方法

Equals(Object)

判斷指定的物件是否等於目前的物件。Determines whether the specified object is equal to the current object.

(繼承來源 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.

(繼承來源 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()

取得目前執行個體的 TypeGets the Type of the current instance.

(繼承來源 Object)
GetTypeDefinition(TypeDefinitionHandle)
GetTypeReference(TypeReferenceHandle)
GetTypeSpecification(TypeSpecificationHandle)
GetUserString(UserStringHandle)
MemberwiseClone()

建立目前 Object 的淺層複本 (Shallow Copy)。Creates a shallow copy of the current Object.

(繼承來源 Object)
ToString()

傳回代表目前物件的字串。Returns a string that represents the current object.

(繼承來源 Object)

擴充方法

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)

適用於