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 instance from the supplied list of partial assembly identities.

ICLRAssemblyIdentityManager::GetProbingAssembliesFromReference Method

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

ICLRAssemblyIdentityManager::GetReferencedAssembliesFromFile Method

Gets an ICLRReferenceAssemblyEnum 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 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

Concepts

ICLRAssemblyReferenceList Interface

ICLRProbingAssemblyEnum Interface

Hosting Interfaces