Share via


IMetaDataEmit::DefineModuleRef Method

Creates the metadata signature for a module with the specified name.

HRESULT DefineModuleRef (   
    [in]  LPCWSTR           szName, 
    [out] mdModuleRef       *pmur 
);

Parameters

  • szName
    [in] The name of the other metadata file, typically a DLL. This is the file name only. Do not use a full path name.

  • pmur
    [out] The assigned mdModuleRef token.

Requirements

Platforms: See .NET Framework System Requirements.

Header: Cor.h

Library: Used 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, 1.1, 1.0

See Also

Reference

IMetaDataEmit Interface

IMetaDataEmit2 Interface