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

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

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

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

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.

ExceptionCondition
ArgumentNullException

customFields or identityRules is a nullptr.

ArgumentOutOfRangeException

customFields or identityRules contains no more data.

Show: