IMetaDataImport::GetFieldProps method (rometadataapi.h)

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

Syntax

HRESULT GetFieldProps(
  [in]  mdFieldDef      tkFieldDef,
  [out] mdTypeDef       *ptkTypeDef,
  [out] LPWSTR          szField,
  [in]  ULONG           cchField,
  [out] ULONG           *pchField,
  [out] DWORD           *pdwAttr,
  [out] PCCOR_SIGNATURE *ppvSigBlob,
  [out] ULONG           *pcbSigBlob,
  [out] DWORD           *pdwCPlusTypeFlag,
  [out] UVCP_CONSTANT   *ppValue,
  [out] ULONG           *pcchValue
);

Parameters

[in] tkFieldDef

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

[out] ptkTypeDef

A pointer to a TypeDef token that represents the type of the class that the field belongs to.

[out] szField

The name of the field.

[in] cchField

The size in wide characters of the buffer for szField.

[out] pchField

The actual size of the returned buffer.

[out] pdwAttr

Flags associated with the field's metadata.

[out] ppvSigBlob

A pointer to the binary metadata value that describes the field.

[out] pcbSigBlob

The size in bytes of ppvSigBlob.

[out] pdwCPlusTypeFlag

A flag that specifies the value type of the field.

[out] ppValue

A constant value for the field.

[out] pcchValue

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

Return value

If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Requirements

Requirement Value
Target Platform Windows
Header rometadataapi.h

See also

IMetaDataImport