IMetaDataImport::EnumProperties Method
Enumerates PropertyDef tokens representing the properties of the type referenced by the specified TypeDef token.
HRESULT EnumProperties (
HCORENUM *phEnum,
mdTypeDef td,
mdProperty rProperties[],
ULONG cMax,
ULONG *pcProperties
);
Parameters
Parameter | Description |
---|---|
phEnum |
[in, out] A pointer to the enumerator. This must be NULL for the first call of this method. |
td |
[in] A TypeDef token representing the type with properties to enumerate. |
rProperties |
[out] The array used to store the PropertyDef tokens. |
cMax |
[in] The maximum size of the rProperties array. |
pcProperties |
[out] The number of PropertyDef tokens returned in rProperties. |
Return Value
HRESULT | Description |
---|---|
S_OK |
EnumProperties returned successfully. |
S_FALSE |
There are no tokens to enumerate. In that case, pcProperties is zero. |
Requirements
Platforms: Windows 2000, Windows XP, Windows Server 2003 family
Header: Cor.h
Library: Included as a resource in Mscoree.dll
.NET Framework Version: 2.0, 1.1, 1.0