Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Extends the IMetaDataImport interface to provide the capability of working with generic types.
interface IMetaDataImport2 : IMetaDataImport {
HRESULT EnumGenericParamConstraints (
HCORENUM *phEnum,
mdGenericParam tk,
mdGenericParamConstraint rGenericParamConstraints[],
ULONG cMax,
ULONG *pcGenericParamConstraints
);
HRESULT EnumGenericParams (
HCORENUM *phEnum,
mdToken tk,
mdGenericParam rGenericParams[],
ULONG cMax,
ULONG *pcGenericParams
);
HRESULT EnumMethodSpecs (
HCORENUM *phEnum,
mdToken tk,
mdMethodSpec rMethodSpecs[],
ULONG cMax,
ULONG *pcMethodSpecs
);
HRESULT GetGenericParamConstraintProps (
mdGenericParamConstraint gpc,
mdGenericParam *ptGenericParam,
mdToken *ptkConstraintType
);
HRESULT GetGenericParamProps (
mdGenericParam gp,
ULONG *pulParamSeq,
DWORD *pdwParamFlags,
mdToken *ptOwner,
DWORD *reserved,
LPWSTR wzName,
ULONG cchName,
ULONG *pchName
);
HRESULT GetMethodSpecProps (
mdMethodSpec mi,
mdToken *tkParent,
PCCOR_SIGNATURE *ppvSigBlob,
ULONG *pcbSigBlob
);
HRESULT GetPEKind (
DWORD *pdwPEKind,
DWORD *pdwMachine
);
HRESULT GetVersionString (
LPWSTR pwzBuf,
DWORD ccBufSize,
DWORD *pccBufSize
);
};
Methods
Method |
Description |
---|---|
Gets an enumerator for an array of generic parameter constraints associated with the generic parameter represented by the specified token. |
|
Gets an enumerator for an array of generic parameter tokens associated with the specified TypeDef or MethodDef token. |
|
Gets an enumerator for an array of MethodSpec tokens associated with the specified MethodDef or MemberRef token. |
|
Gets the metadata associated with the generic parameter constraint represented by the specified constraint token. |
|
Gets the metadata associated with the generic parameter represented by the specified token. |
|
Gets the metadata signature of the method referenced by the specified MethodSpec token. |
|
Gets a value identifying the nature of the code in a portable executable (PE) file, typically a DLL or EXE file, defined in the current metadata scope |
|
Gets the version number of the runtime that was used to build the assembly. |
Requirements
Platforms: Windows 2000, Windows XP, Windows Server 2003 family
Header: Cor.h
Library: Used as a resource in MsCorEE.dll
.NET Framework Version: 2.0