Partager via


IMetaDataImport::GetFieldProps Method

Gets metadata associated with the field referenced by the specified FieldDef token.

HRESULT GetFieldProps (
    mdFieldDef        mb, 
    mdTypeDef         *pClass,
    LPWSTR            szField,
    ULONG             cchField, 
    ULONG             *pchField,
    DWORD             *pdwAttr,
    PCCOR_SIGNATURE   *ppvSigBlob, 
    ULONG             *pcbSigBlob, 
    DWORD             *pdwCPlusTypeFlag, 
    UVCP_CONSTANT     *ppValue,
    ULONG             *pcchValue
);

Parameters

Parameter Description

mb

[in] A FieldDef token that represents the field to get associated metadata for.

pClass

[out] A pointer to a TypeDef token that represents the type of the field.

szField

[out] The name of the field.

cchField

[in] The size in wide characters of the buffer for szField.

pchField

[out] The actual size of the returned buffer.

pdwAttr

[out] Flags associated with the field's metadata.

ppvSigBlob

[in] A pointer to the binary metadata value that describes the field.

pcbSigBlob

[out] The size in bytes of ppvSigBlob.

pdwCPlusTypeFlag

[out] A flag that specifies the value type of the field.

ppValue

[out] A constant value for the field.

pcchValue

[out] The size in chars of ppValue, or zero if no string exists.

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