ICLRAssemblyIdentityManager Interface

Provides methods that support communication between the host and the common language runtime (CLR) about assemblies.

interface ICLRAssemblyIdentityManager : IUnknown {
    HRESULT GetBindingIdentityFromFile (
        [in] LPCWSTR  pwzFilePath,
        [in] DWORD dwFlags,
        [out, size_is(*pcchBufferSize)] LPWSTR pwzBuffer,
        [in, out] DWORD *pcchBufferSize
    );
    HRESULT GetBindingIdentityFromStream (
        [in] IStream *pStream,
        [in] DWORD dwFlags,
        [out, size_is(*pcchBufferSize)] LPWSTR pwzBuffer,
        [in, out] DWORD *pcchBufferSize
    );
    HRESULT  GetCLRAssemblyReferenceList (
        [in] LPCWSTR *ppwzAssemblyReferences,
        [in] DWORD dwNumOfReferences,
        [out] ICLRAssemblyReferenceList **ppReferenceList
    );
    HRESULT GetProbingAssembliesFromReference (
        [in] DWORD dwMachineType,
        [in] DWORD dwFlags,
        [in] LPCWSTR pwzReferenceIdentity,
        [out] ICLRProbingAssemblyEnum **ppProbingAssemblyEnum
    );
    HRESULT GetReferencedAssembliesFromFile (
        [in] LPCWSTR pwzFilePath,
        [in] DWORD dwFlags,
        [in] ICLRAssemblyReferenceList *pExcludeAssembliesList,
        [out] ICLRReferenceAssemblyEnum **ppReferenceEnum
    );
    HRESULT GetReferencedAssembliesFromStream (
        [in] IStream *pStream,
        [in] DWORD dwFlags,
        [in] ICLRAssemblyReferenceList *pExcludeAssembliesList,
        [out] ICLRReferenceAssemblyEnum **ppReferenceEnum
    );
        HRESULT IsStronglyNamed (
        [in] LPCWSTR pwzAssemblyIdentity,
        [out] BOOL *pbIsStronglyNamed
    );
};

Methods

Method Description

ICLRAssemblyIdentityManager::GetBindingIdentityFromFile Method

Gets the assembly identity binding data for the assembly at the specified file path.

ICLRAssemblyIdentityManager::GetBindingIdentityFromStream Method

Gets the canonical assembly identity data for the assembly in the specified stream.

ICLRAssemblyIdentityManager::GetCLRAssemblyReferenceList Method

Gets an ICLRAssemblyReferenceList Interface instance from the supplied list of partial assembly identities.

ICLRAssemblyIdentityManager::GetProbingAssembliesFromReference Method

Gets an ICLRProbingAssemblyEnum Interface enumerator for the assembly identities referenced by the assembly with the specified identity.

ICLRAssemblyIdentityManager::GetReferencedAssembliesFromFile Method

Gets an ICLRReferenceAssemblyEnum Interface instance that contains a list of assemblies referenced by the assembly at the specified file path.

ICLRAssemblyIdentityManager::GetReferencedAssembliesFromStream Method

Gets a pointer to an ICLRReferenceAssemblyEnum Interface object that contains assembly identity data for the assemblies referenced by the assembly in the specified stream.

ICLRAssemblyIdentityManager::IsStronglyNamed Method

Gets a value that indicates whether the specified assembly is strongly named.

Remarks

Use ICLRAssemblyIdentityManager to get instances of ICLRAssemblyReferenceList and to enumerate assembly identities.

Requirements

Platforms: Windows 2000, Windows XP, Windows Server 2003 family

Header: MSCorEE.idl

Library: Included as a resource in MSCorEE.dll

.NET Framework Version: 2.0

See Also

Reference

ICLRAssemblyReferenceList Interface
ICLRProbingAssemblyEnum Interface

Other Resources

Hosting Interfaces