다음을 통해 공유


ModuleBindInfo Structure

Provides detailed information about the referenced module and the assembly that contains it.

typedef struct _ModuleBindInfo {
    DWORD    dwAppDomainId;
    LPCWSTR  lpAssemblyIdentity;
    LPCWSTR  lpModuleName
} ModuleBindInfo;

Members

Member

Description

dwAppDomainId

A unique identifier for the IStream that is returned by a call to the IHostAssemblyStore::ProvideModule method from which the referenced module is to be loaded.

lpAssemblyIdentity

A unique identifier for the assembly that contains the referenced module.

lpModuleName

The name of the referenced module.

Remarks

ModuleBindInfo is passed as a parameter to IHostAssemblyStore::ProvideModule. The host supplies the unique identifier dwAppDomainId to the common language runtime (CLR). After a call to the IHostAssemblyStore::ProvideAssembly method returns, the runtime uses the identifier to determine whether the contents of the IStream have been mapped. If so, the runtime loads the existing copy rather than remapping the stream. The runtime also uses this identifier as a lookup key for streams that are returned from calls to the IHostAssemblyStore::ProvideAssembly method. Therefore, the identifier must be unique for module requests as well as for assembly requests.

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

Hosting Structures

AssemblyBindInfo Structure

ICLRAssemblyIdentityManager Interface

ICLRAssemblyReferenceList Interface

IHostAssemblyManager Interface