หมายเหตุ
การเข้าถึงหน้านี้ต้องได้รับการอนุญาต คุณสามารถลอง ลงชื่อเข้าใช้หรือเปลี่ยนไดเรกทอรีได้
การเข้าถึงหน้านี้ต้องได้รับการอนุญาต คุณสามารถลองเปลี่ยนไดเรกทอรีได้
Gets a metadata token for a type that is defined in the specified scope, which is outside the current scope.
Syntax
HRESULT DefineTypeRefByName (
[in] mdToken tkResolutionScope,
[in] LPCWSTR szName,
[out] mdTypeRef *ptr
);
Parameters
tkResolutionScope
[in] The token specifying the resolution scope. The following token types are valid:
mdModuleRef, if the type is defined in the same assembly in which the caller is defined.mdAssemblyRef, if the type is defined in an assembly other than the one in which the caller is defined.mdTypeRef, if the type is a nested type.mdModule, if the type is defined in the same module in which the caller is defined.Null, if the type is defined globally.
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: See .NET supported operating systems.
Header: Cor.h
Library: CorGuids.lib