Lưu ý
Cần có ủy quyền mới truy nhập được vào trang này. Bạn có thể thử đăng nhập hoặc thay đổi thư mục.
Cần có ủy quyền mới truy nhập được vào trang này. Bạn có thể thử thay đổi thư mục.
Enumerates custom attribute-definition tokens associated with the specified type or member.
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] A pointer to the returned enumerator.
tk
[in] A token for the scope of the enumeration, or zero for all custom attributes.
tkType
[in] A token for the constructor of the type of the attributes to be enumerated, or null for all types.
rCustomAttributes
[out] An array of custom attribute tokens.
cMax
[in] The maximum size of the rCustomAttributes array.
pcCustomAttributes
[out, optional] The actual number of token values returned in rCustomAttributes.
Return Value
| HRESULT | Description |
|---|---|
S_OK |
EnumCustomAttributes returned successfully. |
S_FALSE |
There are no custom attributes to enumerate. In that case, pcCustomAttributes is zero. |
Requirements
Platforms: See .NET supported operating systems.
Header: Cor.h
Library: CorGuids.lib