列舉 PropertyDef 語彙基元,其代表指定的 TypeDef 語彙基元所參考的類型屬性。
語法
HRESULT EnumProperties(
[in, out] HCORENUM *phEnum,
[in] mdTypeDef tkTypDef,
[out] mdProperty [] rgProperties,
[in] ULONG cMax,
[out] ULONG *pcProperties
);
參數
[in, out] phEnum
列舉值的指標。 第一次呼叫這個方法時,此值必須是 NULL。
[in] tkTypDef
TypeDef Token,表示具有要列舉之屬性的類型。
[out] rgProperties
用來儲存 PropertyDef 令牌的陣列。
[in] cMax
rgProperties 陣列的大小上限。
[out] pcProperties
在 rgProperties 中傳回的 PropertyDef 令牌數目。
傳回值
| HRESULT | 描述 |
|---|---|
| S_OK | 已成功傳回 EnumProperties。 |
| S_FALSE | 沒有要列舉的語彙基元。 在此情況下, pcProperties 為 0 (零) 。 |
規格需求
| 需求 | 值 |
|---|---|
| 目標平台 | Windows |
| 標頭 | rometadataapi.h |