Partager via


IMetaDataEmit::SetTypeDefProps Method

Sets features of a type defined by a prior call to IMetaDataEmit::DefineTypeDef Method.

HRESULT SetTypeDefProps (
    [in]  mdTypeDef   td, 
        [in]  DWORD       dwTypeDefFlags, 
    [in]  mdToken     tkExtends, 
        [in]  mdToken     rtkImplements[] 
);

Parameters

Parameter Description

td

[in] An mdTypeDef token obtained from original call to IMetaDataEmit::DefineTypeDef Method.

dwTypeDefFlags

[in] TypeDef attributes.

tkExtends

[in] The mdToken of the base class. Obtained from a previous call to IMetaDataEmit::DefineImportType Method, or null.

rtkImplements[]

[in] An array of tokens for the interfaces that this type implements. These mdTypeRef tokens are obtained using IMetaDataEmit::DefineImportType Method.

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

See Also

Reference

IMetaDataEmit Interface
IMetaDataEmit2 Interface