IItemMetadata::SetFieldUInt64

Sets the value of a 64-bit unsigned integer field.


HRESULT SetFieldUInt64(
  LPCWSTR pcszFieldName,
  ULONGLONG value);

pcszFieldName

[in, string] The name of the field.

value

[out, retval] The value of the field.

  • S_OK

  • E_POINTER

  • E_INVALIDARG

  • SYNC_E_METADATA_FIELD_INVALID_NAME if the field does not exist.

  • SYNC_E_METADATA_FIELD_INVALID_TYPE when the field is not the 64-bit unsigned integer type.

Custom fields must be defined by using a CUSTOM_FIELD_DEFINITION structure when the replica metadata is first initialized.

NoteNote

This method does not save the change to the store. IReplicaMetadata::SaveItemMetadata must be called to save all changes that have been made to the IItemMetadata properties.

Show: