Share via


IMetaDataEmit::DefineMemberRef Method

Defines a reference to a member of a module outside the current scope, and gets a token to that reference definition.

HRESULT DefineMemberRef ( 
    [in]  mdToken           tkImport, 
    [in]  LPCWSTR           szName, 
    [in]  PCCOR_SIGNATURE   pvSigBlob, 
    [in]  ULONG             cbSigBlob, 
    [out] mdMemberRef       *pmr 
);

Parameters

  • tkImport
    [in] Token for the target member's class or interface, if the member is not global; if the member is global, the mdModuleRef token for that other file.

  • szName
    [in] The name of the target member.

  • pvSigBlob
    [in] The signature of the target member.

  • cbSigBlob
    [in] The count of bytes in pvSigBlob.

  • pmr
    [out] The mdMemberRef token assigned.

Requirements

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

Header: Cor.h

Library: Used as a resource in MSCorEE.dll

.NET Framework Version: 2.0, 1.1, 1.0

See Also

Concepts

IMetaDataEmit Interface

IMetaDataEmit2 Interface