Share via


IReplicaMetadata::SetCustomFieldMetadata

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

Syntax

HRESULT SetCustomFieldMetadata(
  BYTE * pbValue,
  ULONG cbValue);

Parameters

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

  • cbValue
    [in] The number of bytes in pbValue.

Return Value

  • S_OK

  • E_INVALIDARG

Remarks

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.

Note

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.

See Also

Reference

IReplicaMetadata Interface