ItemMetadata::SetCustomField Method (String, String)

When overridden in a derived class, sets the value of the specified custom field.

Namespace:  Microsoft.Synchronization.MetadataStorage
Assembly:  Microsoft.Synchronization.MetadataStorage (in Microsoft.Synchronization.MetadataStorage.dll)

public:
virtual void SetCustomField(
	String^ fieldName, 
	String^ value
) abstract

Parameters

fieldName
Type: System::String
The name of the custom field.
value
Type: System::String
The value of the field.

ExceptionCondition
ArgumentNullException

fieldName is a nullptr.

ArgumentException

fieldName is 0 length.

ArgumentOutOfRangeException

value is too long. For the implementation of this class that is available by using SqlMetadataStore, values must be less than 4000 characters.

Custom fields must be defined in a FieldSchema object when the replica metadata is first initialized.

Show: