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 System Requirements.

Header: Cor.h

Library: Used as a resource in MSCorEE.dll

.NET Framework Versions: Available since 1.0

See also