System.Reflection.Metadata 命名空間

System.Reflection.Metadata 命名空間包含代表 Managed 程式碼中組件、模組、成員、參數和其他實體相關中繼資料資訊的類型。 The System.Reflection.Metadata namespace contains types that represent metadata information about assemblies, modules, members, parameters, and other entities in managed code.

類別

AssemblyExtensions
BlobBuilder
DebugMetadataHeader
HandleComparer
ILOpCodeExtensions
ImageFormatLimitationException

嘗試寫入中繼資料時所擲回的例外狀況,超過格式規格所指定的限制。The exception that is thrown when an attempt to write metadata exceeds a limit given by the format specification. 例如,超過堆積大小限制時。For example, when the heap size limit is exceeded.

MetadataReader

如 ECMA 335 CLI 規格所定義,讀取中繼資料。Reads metadata as defined by the ECMA 335 CLI specification.

MetadataReaderProvider

針對儲存在位元組陣列、記憶體區塊或資料流中的中繼資料提供 MetadataReaderProvides a MetadataReader for metadata stored in an array of bytes, a memory block, or a stream.

MetadataStringDecoder

MetadataReader 提供自訂機制,以在代表文字的中繼資料中解碼位元組序列。Provides the MetadataReader with a custom mechanism for decoding byte sequences in metadata that represent text.

MethodBodyBlock
PEReaderExtensions

結構

ArrayShape

表示陣列類型的圖形。Represents the shape of an array type.

AssemblyDefinition
AssemblyDefinitionHandle
AssemblyFile
AssemblyFileHandle
AssemblyFileHandleCollection

代表 AssemblyFileHandle 的集合。Represents a collection of AssemblyFileHandle.

AssemblyFileHandleCollection.Enumerator
AssemblyReference
AssemblyReferenceHandle
AssemblyReferenceHandleCollection

組件參考的集合。A collection of assembly references.

AssemblyReferenceHandleCollection.Enumerator
Blob
BlobBuilder.Blobs
BlobContentId
BlobHandle
BlobReader
BlobWriter
Constant
ConstantHandle
CustomAttribute
CustomAttributeHandle
CustomAttributeHandleCollection
CustomAttributeHandleCollection.Enumerator
CustomAttributeNamedArgument<TType>

表示從自訂屬性簽章解碼的具名引數。Represents a named argument decoded from a custom attribute signature.

CustomAttributeTypedArgument<TType>

表示自訂中繼資料屬性的具型別引數。Represents a typed argument for a custom metadata attribute.

CustomAttributeValue<TType>

表示 TType 所指定類型的自訂屬性。Represents a custom attribute of the type specified by TType.

CustomDebugInformation
CustomDebugInformationHandle
CustomDebugInformationHandleCollection
CustomDebugInformationHandleCollection.Enumerator
DeclarativeSecurityAttribute
DeclarativeSecurityAttributeHandle
DeclarativeSecurityAttributeHandleCollection
DeclarativeSecurityAttributeHandleCollection.Enumerator
Document

偵錯中繼資料中的來源文件。The source document in the debug metadata.

DocumentHandle
DocumentHandleCollection
DocumentHandleCollection.Enumerator
DocumentNameBlobHandle

BlobHandle,它代表可攜式 PDB 中 #Blob 堆積上的 Blob (結構化為文件名稱)。A BlobHandle representing a blob on #Blob heap in Portable PDB structured as Document Name.

EntityHandle

表示中繼資料實體 (例如類型參考、類型定義、類型規格、方法定義或自訂屬性)。Represents a metadata entity (such as a type reference, type definition, type specification, method definition, or custom attribute).

EventAccessors
EventDefinition
EventDefinitionHandle
EventDefinitionHandleCollection
EventDefinitionHandleCollection.Enumerator
ExceptionRegion
ExportedType
ExportedTypeHandle
ExportedTypeHandleCollection

表示 TypeReferenceHandle 執行個體的集合。Represents a collection of TypeReferenceHandle instances.

ExportedTypeHandleCollection.Enumerator
FieldDefinition
FieldDefinitionHandle
FieldDefinitionHandleCollection
FieldDefinitionHandleCollection.Enumerator
GenericParameter
GenericParameterConstraint
GenericParameterConstraintHandle
GenericParameterConstraintHandleCollection

表示泛型型別參數條件約束的集合。Represents a collection of constraints of a generic type parameter.

GenericParameterConstraintHandleCollection.Enumerator
GenericParameterHandle
GenericParameterHandleCollection

表示方法或類型的泛型型別參數集合。Represents a collection of generic type parameters of a method or type.

GenericParameterHandleCollection.Enumerator
GuidHandle
Handle

表示任何中繼資料實體 (例如類型參考、類型定義、類型規格、方法定義或自訂屬性) 或值 (字串、Blob、guid 或使用者字串)。Represents any metadata entity (such as a type reference, a type definition, a type specification, a method definition, or a custom attribute) or value (a string, blob, guid, or user string).

ImportDefinition
ImportDefinitionCollection
ImportDefinitionCollection.Enumerator
ImportScope

提供可在該詞彙範圍中進行一組匯入的相關資訊。Provides information about the lexical scope within which a group of imports are available. 此資訊儲存在偵錯中繼資料中。This information is stored in debug metadata.

ImportScopeCollection
ImportScopeCollection.Enumerator
ImportScopeHandle
InterfaceImplementation
InterfaceImplementationHandle
InterfaceImplementationHandleCollection
InterfaceImplementationHandleCollection.Enumerator
LocalConstant

提供區域常數的相關資訊。Provides information about local constants. 此資訊儲存在偵錯中繼資料中。This information is stored in debug metadata.

LocalConstantHandle
LocalConstantHandleCollection
LocalConstantHandleCollection.Enumerator
LocalScope

提供本機變數和常數範圍的相關資訊。Provides information about the scope of local variables and constants. 此資訊儲存在偵錯中繼資料中。This information is stored in debug metadata.

LocalScopeHandle
LocalScopeHandleCollection
LocalScopeHandleCollection.ChildrenEnumerator
LocalScopeHandleCollection.Enumerator
LocalVariable

提供區域變數的相關資訊。Provides information about local variables. 此資訊儲存在偵錯中繼資料中。This information is stored in debug metadata.

LocalVariableHandle
LocalVariableHandleCollection
LocalVariableHandleCollection.Enumerator
ManifestResource
ManifestResourceHandle
ManifestResourceHandleCollection

表示 ManifestResourceHandle 執行個體的集合。Represents a collection of ManifestResourceHandle instances.

ManifestResourceHandleCollection.Enumerator
MemberReference
MemberReferenceHandle
MemberReferenceHandleCollection

表示 MemberReferenceHandle 執行個體的集合。Represents a collection of MemberReferenceHandle instances.

MemberReferenceHandleCollection.Enumerator
MetadataStringComparer

提供字串比較協助程式,以在中繼資料中查詢字串,同時盡可能避免配置。Provides string comparison helpers to query strings in metadata while avoiding allocation if possible.

MethodDebugInformation

提供與方法定義建立關聯的偵錯資訊。Provides debug information associated with a method definition. 此資訊儲存在偵錯中繼資料中。This information is stored in debug metadata.

MethodDebugInformationHandle
MethodDebugInformationHandleCollection
MethodDebugInformationHandleCollection.Enumerator
MethodDefinition
MethodDefinitionHandle
MethodDefinitionHandleCollection
MethodDefinitionHandleCollection.Enumerator
MethodImplementation
MethodImplementationHandle
MethodImplementationHandleCollection
MethodImplementationHandleCollection.Enumerator
MethodImport
MethodSignature<TType>

表示方法 (定義、參考或獨立) 或屬性簽章。Represents a method (definition, reference, or standalone) or property signature. 針對屬性,簽章會符合具特殊 SignatureHeader 的 getter。In the case of properties, the signature matches that of a getter with a distinguishing SignatureHeader.

MethodSpecification
MethodSpecificationHandle
ModuleDefinition
ModuleDefinitionHandle
ModuleReference
ModuleReferenceHandle
NamespaceDefinition
NamespaceDefinitionHandle

提供命名空間定義的控點。Provides a handle to a namespace definition.

Parameter
ParameterHandle
ParameterHandleCollection

包含指定方法的參數集合。Contains a collection of parameters of a specified method.

ParameterHandleCollection.Enumerator
PropertyAccessors
PropertyDefinition
PropertyDefinitionHandle
PropertyDefinitionHandleCollection
PropertyDefinitionHandleCollection.Enumerator
ReservedBlob<THandle>

表示已保留供未來內容更新的中繼資料堆積控點和對應 Blob。Represents a handle and a corresponding blob on a metadata heap that was reserved for future content update.

SequencePoint
SequencePointCollection
SequencePointCollection.Enumerator
SignatureHeader

表示簽章 Blob 的前置位元組所指定的簽章特性。Represents the signature characteristics specified by the leading byte of signature blobs.

StandaloneSignature
StandaloneSignatureHandle
StringHandle
TypeDefinition
TypeDefinitionHandle
TypeDefinitionHandleCollection

包含 TypeDefinitionHandle 執行個體的集合。Contains a collection of TypeDefinitionHandle instances.

TypeDefinitionHandleCollection.Enumerator
TypeLayout
TypeReference
TypeReferenceHandle
TypeReferenceHandleCollection

包含 TypeReferenceHandle 執行個體的集合。Contains a collection of TypeReferenceHandle instances.

TypeReferenceHandleCollection.Enumerator
TypeSpecification
TypeSpecificationHandle
UserStringHandle

表示使用者字串堆積的控點。Represents a handle to the user string heap.

介面

IConstructedTypeProvider<TType>
ICustomAttributeTypeProvider<TType>
IPrimitiveTypeProvider<TType>
ISignatureTypeProvider<TType>
ISignatureTypeProvider<TType,TGenericContext>
ISimpleTypeProvider<TType>
ISZArrayTypeProvider<TType>
ITypeProvider<TType>

列舉

ConstantTypeCode

指定表示中繼資料常數類型的值。Specifies values that represent types of metadata constants.

CustomAttributeNamedArgumentKind

指定在自訂屬性簽章中定義引數種類的常數。Specifies constants that define the kinds of arguments in a custom attribute signature.

ExceptionRegionKind
HandleKind
ILOpCode
ImportDefinitionKind
LocalVariableAttributes
MemberReferenceKind

指定常數,以表示 MemberReference 是否參考方法或欄位。Specifies constants that indicate whether a MemberReference references a method or field.

MetadataKind
MetadataReaderOptions
MetadataStreamOptions
PrimitiveSerializationTypeCode

指定要在 CustomAttribute 值 Blob 中,定義用於編碼基本值類型的類型代碼。Specifies constants that define the type codes used to encode types of primitive values in a CustomAttribute value blob.

PrimitiveTypeCode

指定在中繼資料簽章中找到,定義基礎類型的常數。Specifies constants that define primitive types found in metadata signatures.

SerializationTypeCode

指定要在 CustomAttributeValue<TType> Blob 中用於編碼值類型的類型代碼。Specifies type codes used to encode the types of values in a CustomAttributeValue<TType> blob.

SignatureAttributes

指定可套用到方法簽章的其他旗標。 此類型中的欄位基礎值會對應 SignatureHeader 結構代表的前置簽章位元組。The underlying values of the fields in this type correspond to the representation in the leading signature byte represented by a SignatureHeader structure.

SignatureCallingConvention

指定呼叫者如何將指定簽章中的引數傳遞給被呼叫者。 此類型中的欄位基礎值會對應 SignatureHeader 結構代表的前置簽章位元組。The underlying values of the fields in this type correspond to the representation in the leading signature byte represented by a SignatureHeader structure.

SignatureKind

指定簽章種類。 此類型中的欄位基礎值會對應 SignatureHeader 結構代表的前置簽章位元組。The underlying values of the fields in this type correspond to the representation in the leading signature byte represented by a SignatureHeader structure.

SignatureTypeCode

指定在簽章編碼中用於定義類型代碼的常數。Specifies constants that define type codes used in signature encoding.

SignatureTypeKind

指出簽章的類型定義。Indicates the type definition of the signature.

StandaloneSignatureKind

指出 StandaloneSignature 表示獨立方法或區域變數簽章。Indicates whether a StandaloneSignature represents a standalone method or local variable signature.