IMetaDataEmit::DefineMemberRef Method

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

Syntax

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 System Requirements.

Header: Cor.h

Library: Used as a resource in MSCorEE.dll

.NET Framework Versions: Available since 1.0

See also