IReplicaMetadata::SetCustomFieldMetadata

Sets the custom metadata field that is associated with this replica.


HRESULT SetCustomFieldMetadata(
  BYTE * pbValue,
  ULONG cbValue);

pbValue

[in, size_is(cbValue), unique] The value to set for the custom metadata field.

cbValue

[in] The number of bytes in pbValue.

  • S_OK

  • E_INVALIDARG

To set the custom metadata field value to a null value, pbValue must be NULL and cbValue must be 0. If pbValue is NULL and cbValue is not 0 or if cbValue is 0 and pbValue is not NULL, E_INVALIDARG is returned.

NoteNote

This method does not save the change to the store. The provider must call IReplicaMetadata::SaveReplicaMetadata to save all changes that have been made to the IReplicaMetadata properties.

Show: