Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

IMetaDataImport::EnumProperties method

Enumerates PropertyDef tokens representing the properties of the type referenced by the specified TypeDef token.

Syntax


HRESULT EnumProperties(
  [in, out]                                      HCORENUM   *phEnum,
  [in]                                           mdTypeDef  tkTypDef,
  [out, size_is(cMax), length_is(*pcProperties)] mdProperty rgProperties[],
  [in]                                           ULONG      cMax,
  [out]                                          ULONG      *pcProperties
);

Parameters

phEnum [in, out]

A pointer to the enumerator. This must be NULL for the first call of this method.

tkTypDef [in]

A TypeDef token representing the type with properties to enumerate.

rgProperties [out]

The array used to store the PropertyDef tokens.

cMax [in]

The maximum size of the rgProperties array.

pcProperties [out]

The number of PropertyDef tokens returned in rgProperties.

Return value

HRESULTDescription
S_OKEnumProperties returned successfully.
S_FALSEThere are no tokens to enumerate. In this case, pcProperties is 0 (zero).

 

Requirements

IDL

Rometadataapi.idl

See also

IMetaDataImport

 

 

Show: