Share via


CreateAssemblyEnum Function

Gets a pointer to an IAssemblyEnum instance that can enumerate the objects in the assembly with the specified IAssemblyName.

HRESULT CreateAssemblyEnum (
    [out] IAssemblyEnum  **pEnum,
    [in]  IUnknown       *pUnkReserved,
    [in]  IAssemblyName  *pName,
    [in]  DWORD          dwFlags,
    [in]  LPVOID         pvReserved
 );

Parameters

  • pEnum
    [out] Pointer to a memory location that contains the requested IAssemblyEnum pointer.

  • pUnkReserved
    [in] Reserved for future extensibility. pUnkReserved must be a null reference.

  • pName
    [in] The IAssemblyName of the requested assembly. This name is used to filter the enumeration. It can be null to enumerate all assemblies in the global assembly cache.

  • dwFlags
    [in] Flags for modifying the enumerator's behavior. This parameter contains exactly one bit from the ASM_CACHE_FLAGS enumeration.

  • pvReserved
    [in] Reserved for future extensibility. pvReserved must be a null reference.

Remarks

The dwFlags parameter contains exactly one bit from the ASM_CACHE_FLAGS enumeration.

Requirements

Platforms: See .NET Framework System Requirements.

Header: Fusion.h

Library: Included as a resource in MsCorEE.dll

.NET Framework Versions: 4, 3.5 SP1, 3.5, 3.0 SP1, 3.0, 2.0 SP1, 2.0

See Also

Reference

IAssemblyEnum Interface

IAssemblyName Interface

Other Resources

Fusion Global Static Functions