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: 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