ItemMetadata::SetCustomField Method (String, UInt16)
When overridden in a derived class, sets the value of the specified custom field.
Assembly: Microsoft.Synchronization.MetadataStorage (in Microsoft.Synchronization.MetadataStorage.dll)
public: virtual void SetCustomField( String^ fieldName, unsigned short value ) abstract
Parameters
- fieldName
- Type: System::String
The name of the custom field.
- value
- Type: System::UInt16
The value of the field.
| Exception | Condition |
|---|---|
| ArgumentNullException | fieldName is a nullptr. |
| ArgumentException | fieldName is 0 length. |
Custom fields must be defined in a FieldSchema object when the replica metadata is first initialized.
Show: