Condividi tramite


Metodo IMetaDataImport::EnumTypeRefs

Enumera i token TypeRef definiti nell'ambito dei metadati corrente.

Sintassi

HRESULT EnumTypeRefs (  
   [in, out] HCORENUM    *phEnum,
   [out] mdTypeRef       rTypeRefs[],  
   [in]  ULONG           cMax,
   [out] ULONG           *pcTypeRefs  
);  

Parametri

phEnum
[in, out] Puntatore all'enumeratore. Deve essere NULL per la prima chiamata di questo metodo.

rTypeRefs
[out] Matrice usata per archiviare i token TypeRef.

cMax
[in] Dimensione massima della matrice rTypeRefs.

pcTypeRefs
[out] Puntatore al numero di token TypeRef restituiti in rTypeRefs.

Valore restituito

HRESULT Descrizione
S_OK EnumTypeRefs restituito correttamente.
S_FALSE Non sono presenti token da enumerare. In tal caso, pcTypeRefs è zero.

Commenti

Un token TypeRef rappresenta un riferimento a un tipo.

Requisiti

Piattaforme: vedere Requisiti di sistema di .NET Framework.

Intestazione: Cor.h

Libreria: Incluso come risorsa in MsCorEE.dll

Versioni di .NET Framework: Disponibile dalla versione 1.0

Vedi anche