Edit

Share via


IMetaDataEmit::SetTypeDefProps Method

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

Syntax

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

Parameters

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

dwTypeDefFlags [in] TypeDef attributes. This is a bitmask of CorTypeAttr values.

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

rtkImplements[] [in] An array of tokens for the interfaces that this type implements. These mdTypeRef tokens are obtained using IMetaDataEmit::DefineImportType. The last element of the array is must be mdTokenNil.

Requirements

Platforms: See .NET supported operating systems.

Header: Cor.h

Library: CorGuids.lib

See also