Muokkaa

Jaa


IMetaDataAssemblyImport::EnumManifestResources Method

Gets a pointer to an enumerator for the resources referenced in the current assembly manifest.

Syntax

HRESULT EnumManifestResources (  
    [in, out] HCORENUM         *phEnum,
    [out] mdManifestResource   rManifestResources[],
    [in]  ULONG                cMax,
    [out] ULONG                *pcTokens  
);

Parameters

phEnum
[in, out] A pointer to the enumerator. This must be a null value when the EnumManifestResources method is called for the first time.

rManifestResources
[out] The array used to store the mdManifestResource metadata tokens.

cMax
[in] The maximum number of mdManifestResource tokens that can be placed in rManifestResources.

pcTokens
[out] The number of mdManifestResource tokens actually placed in rManifestResources.

Return Value

HRESULT Description
S_OK EnumManifestResources returned successfully.
S_FALSE There are no tokens to enumerate. In this case, pcTokens is set to zero.

Requirements

Platforms: See System Requirements.

Header: Cor.h

Library: Used as a resource in MsCorEE.dll

.NET Framework Versions: Available since 1.0

See also