枚举与指定类型或成员关联的自定义属性定义令牌。
Syntax
HRESULT EnumCustomAttributes (
[in, out] HCORENUM *phEnum,
[in] mdToken tk,
[in] mdToken tkType,
[out] mdCustomAttribute rCustomAttributes[],
[in] ULONG cMax,
[out, optional] ULONG *pcCustomAttributes
);
Parameters
phEnum [in, out]指向返回的枚举器的指针。
tk [in]枚举范围的令牌,或所有自定义属性的零。
tkType [in]要枚举的属性类型的构造函数的标记,或 null 用于所有类型。
rCustomAttributes [out]自定义属性令牌的数组。
cMax [in]数组的最大大小 rCustomAttributes 。
pcCustomAttributes [out, optional]返回 rCustomAttributes的实际标记值数。
Return Value
| HRESULT | Description |
|---|---|
S_OK |
EnumCustomAttributes 已成功返回。 |
S_FALSE |
没有要枚举的自定义属性。 在这种情况下, pcCustomAttributes 为零。 |
Requirements
平台: 请参阅 .NET 支持的作系统。
Header: Cor.h
Library: CorGuids.lib