getFieldProps method

void getFieldProps(
  1. int mb,
  2. Pointer<Uint32> pClass,
  3. PWSTR? szField,
  4. int cchField,
  5. Pointer<Uint32> pchField,
  6. Pointer<Uint32> pdwAttr,
  7. Pointer<Pointer<Uint8>> ppvSigBlob,
  8. Pointer<Uint32> pcbSigBlob,
  9. Pointer<Uint32> pdwCPlusTypeFlag,
  10. Pointer<Pointer<NativeType>> ppValue,
  11. Pointer<Uint32> pcchValue,
)

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

Throws a WindowsException on failure.

To learn more, see learn.microsoft.com/windows/win32/api/rometadataapi/nf-rometadataapi-imetadataimport-getfieldprops.

Implementation

@pragma('vm:prefer-inline')
void getFieldProps(
  int mb,
  Pointer<Uint32> pClass,
  PWSTR? szField,
  int cchField,
  Pointer<Uint32> pchField,
  Pointer<Uint32> pdwAttr,
  Pointer<Pointer<Uint8>> ppvSigBlob,
  Pointer<Uint32> pcbSigBlob,
  Pointer<Uint32> pdwCPlusTypeFlag,
  Pointer<Pointer> ppValue,
  Pointer<Uint32> pcchValue,
) {
  final hr$ = HRESULT(
    _GetFieldPropsFn(
      ptr,
      mb,
      pClass,
      szField ?? nullptr,
      cchField,
      pchField,
      pdwAttr,
      ppvSigBlob,
      pcbSigBlob,
      pdwCPlusTypeFlag,
      ppValue,
      pcchValue,
    ),
  );
  if (hr$.isError) throw WindowsException(hr$);
}