หมายเหตุ
การเข้าถึงหน้านี้ต้องได้รับการอนุญาต คุณสามารถลอง ลงชื่อเข้าใช้หรือเปลี่ยนไดเรกทอรีได้
การเข้าถึงหน้านี้ต้องได้รับการอนุญาต คุณสามารถลองเปลี่ยนไดเรกทอรีได้
Creates the metadata signature of a type definition, returns an mdTypeDef token for that type, and specifies that the defined type is a member of the type referenced by the tdEncloser parameter.
Syntax
HRESULT DefineNestedType (
[in] LPCWSTR szTypeDef,
[in] DWORD dwTypeDefFlags,
[in] mdToken tkExtends,
[in] mdToken rtkImplements[],
[in] mdTypeDef tdEncloser,
[out] mdTypeDef *ptd
);
Parameters
szTypeDef
[in] The name of the type in Unicode.
dwTypeDefFlags
[in] TypeDef attributes. This is a bitmask of CorTypeAttr values.
tkExtends
[in] The token of the base class. This is either a mdTypeDef or a mdTypeRef token.
rtkImplements[]
[in] An array of tokens that specify the interfaces that this class or interface implements.
tdEncloser
[in] The token of the enclosing type. The last element of the array must be mdTokenNil.
ptd
[out] The mdTypeDef token assigned.
Requirements
Platforms: See .NET supported operating systems.
Header: Cor.h
Library: CorGuids.lib