IMetaDataEmit::DefineTypeRefByName Method
Gets a metadata token for a type that is defined in the specified scope, which is outside the current scope.
HRESULT DefineTypeRefByName (
[in] mdToken tkResolutionScope,
[in] LPCWSTR szName,
[out] mdTypeRef *ptr
);
Parameters
Parameter | Description |
---|---|
tkResolutionScope |
[in] The token specifying the resolution scope. The following token types are valid:
|
szName |
[in] The name of the target type in Unicode. |
ptr |
[out] A pointer to the mdTypeRef token that is assigned to the type. |
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