Share via


IMetaDataImport::GetFieldProps Method

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

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

Parameters

  • 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

Concepts

IMetaDataImport Interface

IMetaDataImport2 Interface