System.Reflection.Metadata Namespace

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
MetadataReaderProvider
MetadataStringDecoder
MethodBodyBlock
PEReaderExtensions

結構

ArrayShape

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

AssemblyDefinition
AssemblyDefinitionHandle
AssemblyFile
AssemblyFileHandle
AssemblyFileHandleCollection
AssemblyFileHandleCollection.Enumerator
AssemblyReference
AssemblyReferenceHandle
AssemblyReferenceHandleCollection
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
DocumentHandle
DocumentHandleCollection
DocumentHandleCollection.Enumerator
DocumentNameBlobHandle
EntityHandle
EventAccessors
EventDefinition
EventDefinitionHandle
EventDefinitionHandleCollection
EventDefinitionHandleCollection.Enumerator
ExceptionRegion
ExportedType
ExportedTypeHandle
ExportedTypeHandleCollection
ExportedTypeHandleCollection.Enumerator
FieldDefinition
FieldDefinitionHandle
FieldDefinitionHandleCollection
FieldDefinitionHandleCollection.Enumerator
GenericParameter
GenericParameterConstraint
GenericParameterConstraintHandle
GenericParameterConstraintHandleCollection
GenericParameterConstraintHandleCollection.Enumerator
GenericParameterHandle
GenericParameterHandleCollection
GenericParameterHandleCollection.Enumerator
GuidHandle
Handle
ImportDefinition
ImportDefinitionCollection
ImportDefinitionCollection.Enumerator
ImportScope
ImportScopeCollection
ImportScopeCollection.Enumerator
ImportScopeHandle
InterfaceImplementation
InterfaceImplementationHandle
InterfaceImplementationHandleCollection
InterfaceImplementationHandleCollection.Enumerator
LocalConstant
LocalConstantHandle
LocalConstantHandleCollection
LocalConstantHandleCollection.Enumerator
LocalScope
LocalScopeHandle
LocalScopeHandleCollection
LocalScopeHandleCollection.ChildrenEnumerator
LocalScopeHandleCollection.Enumerator
LocalVariable
LocalVariableHandle
LocalVariableHandleCollection
LocalVariableHandleCollection.Enumerator
ManifestResource
ManifestResourceHandle
ManifestResourceHandleCollection
ManifestResourceHandleCollection.Enumerator
MemberReference
MemberReferenceHandle
MemberReferenceHandleCollection
MemberReferenceHandleCollection.Enumerator
MetadataStringComparer
MethodDebugInformation
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
Parameter
ParameterHandle
ParameterHandleCollection
ParameterHandleCollection.Enumerator
PropertyAccessors
PropertyDefinition
PropertyDefinitionHandle
PropertyDefinitionHandleCollection
PropertyDefinitionHandleCollection.Enumerator
ReservedBlob<THandle>
SequencePoint
SequencePointCollection
SequencePointCollection.Enumerator
SignatureHeader

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

StandaloneSignature
StandaloneSignatureHandle
StringHandle
TypeDefinition
TypeDefinitionHandle
TypeDefinitionHandleCollection
TypeDefinitionHandleCollection.Enumerator
TypeLayout
TypeReference
TypeReferenceHandle
TypeReferenceHandleCollection
TypeReferenceHandleCollection.Enumerator
TypeSpecification
TypeSpecificationHandle
UserStringHandle

介面

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.