Nota
L'accesso a questa pagina richiede l'autorizzazione. È possibile provare ad accedere o modificare le directory.
L'accesso a questa pagina richiede l'autorizzazione. È possibile provare a modificare le directory.
Enumera token di definizione dell'attributo personalizzati associati al tipo o al membro specificato.
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] Puntatore all'enumeratore restituito.
tk [in] Token per l'ambito dell'enumerazione o zero per tutti gli attributi personalizzati.
tkType [in] Token per il costruttore del tipo degli attributi da enumerare o null per tutti i tipi.
rCustomAttributes [out] Matrice di token di attributo personalizzati.
cMax [in] Dimensione massima della rCustomAttributes matrice.
pcCustomAttributes [out, facoltativo] Numero effettivo di valori di token restituiti in rCustomAttributes.
Return Value
| HRESULT | Description |
|---|---|
S_OK |
EnumCustomAttributes restituito correttamente. |
S_FALSE |
Non esistono attributi personalizzati da enumerare. In tal caso, pcCustomAttributes è zero. |
Requirements
Piattaforme: Vedere Sistemi operativi supportati da .NET.
Header: Cor.h
Library: CorGuids.lib