Share via


IFieldValue::GetByteArrayValue

Gets the value of a field of type SYNC_METADATA_FIELD_TYPE_BYTEARRAY.

HRESULT GetByteArrayValue(
  BYTE * pbValue,
  ULONG * pcbValue);

Parameters

  • pbValue
    [in, out, unique, size_is(*pcbValue)] Returns the value of the field.
  • pcbValue
    [in, out] Specifies the number of bytes in pbValue. Returns the number of bytes required to retrieve the value when pbValue is too small, or returns the number of bytes written.

Return Value

  • S_OK.

  • S_FALSE if the value has not been set.

  • E_POINTER.

  • SYNC_E_METADATA_FIELD_INVALID_TYPE when this field is not of type SYNC_METADATA_FIELD_TYPE_BYTEARRAY.

  • HRESULT_FROM_WIN32(ERROR_MORE_DATA) when pbValue is too small. In this situation, the required number of bytes is returned in pcbValue.

See Also

Reference

IFieldValue Interface