Freigeben über


IMetaDataImport::GetClassLayout Method

Gets layout information for the class referenced by the specified TypeDef token.

HRESULT GetClassLayout  ( 
    mdTypeDef          td, 
    DWORD              *pdwPackSize,
    COR_FIELD_OFFSET   rFieldOffset[],
    ULONG              cMax,
    ULONG              *pcFieldOffset,
    ULONG              *pulClassSize
);

Parameters

Parameter Description

td

[in] The TypeDef token for the class with the layout to return.

pdwPackSize

[out] One of the values 1, 2, 4, 8, or 16, representing the pack size of the class.

rFieldOffset

[out] An array of COR_FIELD_OFFSET Structure values.

cMax

[in] The maximum size of the rFieldOffset array.

pcFieldOffset

[out] The number of elements returned in rFieldOffset.

pulClassSize

[out] The size in bytes of the class represented by td.

Requirements

Platforms: Windows 2000, Windows XP, Windows Server 2003 family

Header: Cor.h

Library: Included as a resource in Mscoree.dll

.NET Framework Version: 2.0, 1.1, 1.0

See Also

Reference

IMetaDataImport Interface
IMetaDataImport2 Interface