ItemMetadataSchema Constructor (IEnumerable<CustomFieldDefinition>, IEnumerable<IdentityRule>, IEnumerable<ChangeUnitVersionDefinition>)

Initializes a new instance of the ItemMetadataSchema class that contains information about custom fields, how to identify an item, and how change units are defined.

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

public:
ItemMetadataSchema(
	IEnumerable<CustomFieldDefinition^>^ customFields, 
	IEnumerable<IdentityRule^>^ identityRules, 
	IEnumerable<ChangeUnitVersionDefinition^>^ changeUnitVersionDefinitions
)

Parameters

customFields
Type: System.Collections.Generic::IEnumerable<CustomFieldDefinition>
A collection of CustomFieldDefinition objects that each represent a custom field. Fields can be used to identify an item in the metadata or store version information about an item.
identityRules
Type: System.Collections.Generic::IEnumerable<IdentityRule>
A collection of IdentityRule objects that defines the way in which an item is identified within a replica.
changeUnitVersionDefinitions
Type: System.Collections.Generic::IEnumerable<ChangeUnitVersionDefinition>
A collection of ChangeUnitVersionDefinition objects that represent the way in which a change unit is identified in terms of an ID, an ID format, and a set of fields that define a change unit's version.

ExceptionCondition
ArgumentNullException

customFields or identityRules is a nullptr.

ArgumentOutOfRangeException

customFields or identityRules contains no more data.

Show: