Metodo IMetaDataImport::EnumCustomAttributes
Enumera i token di definizione dell'attributo personalizzati associati al tipo o al membro specificati.
Sintassi
HRESULT EnumCustomAttributes (
[in, out] HCORENUM *phEnum,
[in] mdToken tk,
[in] mdToken tkType,
[out] mdCustomAttribute rCustomAttributes[],
[in] ULONG cMax,
[out, optional] ULONG *pcCustomAttributes
);
Parametri
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 matrice rCustomAttributes
.
pcCustomAttributes
[out, facoltativo] Numero effettivo di valori di token restituiti in rCustomAttributes
.
Valore restituito
HRESULT | Descrizione |
---|---|
S_OK |
EnumCustomAttributes restituito correttamente. |
S_FALSE |
Non sono presenti attributi personalizzati da enumerare. In questo caso, pcCustomAttributes è zero. |
Requisiti
Piattaforme: vedere Requisiti di sistema di .NET Framework.
Intestazione: Cor.h
Libreria: Incluso come risorsa in MsCorEE.dll
Versioni di .NET Framework: Disponibile da 1.0