Not
Åtkomst till denna sida kräver auktorisation. Du kan prova att logga in eller byta katalog.
Åtkomst till denna sida kräver auktorisation. Du kan prova att byta katalog.
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)
Syntax
'Declaration
Public Sub New ( _
customFields As IEnumerable(Of CustomFieldDefinition), _
identityRules As IEnumerable(Of IdentityRule), _
changeUnitVersionDefinitions As IEnumerable(Of ChangeUnitVersionDefinition) _
)
'Usage
Dim customFields As IEnumerable(Of CustomFieldDefinition)
Dim identityRules As IEnumerable(Of IdentityRule)
Dim changeUnitVersionDefinitions As IEnumerable(Of ChangeUnitVersionDefinition)
Dim instance As New ItemMetadataSchema(customFields, _
identityRules, changeUnitVersionDefinitions)
public ItemMetadataSchema(
IEnumerable<CustomFieldDefinition> customFields,
IEnumerable<IdentityRule> identityRules,
IEnumerable<ChangeUnitVersionDefinition> changeUnitVersionDefinitions
)
public:
ItemMetadataSchema(
IEnumerable<CustomFieldDefinition^>^ customFields,
IEnumerable<IdentityRule^>^ identityRules,
IEnumerable<ChangeUnitVersionDefinition^>^ changeUnitVersionDefinitions
)
new :
customFields:IEnumerable<CustomFieldDefinition> *
identityRules:IEnumerable<IdentityRule> *
changeUnitVersionDefinitions:IEnumerable<ChangeUnitVersionDefinition> -> ItemMetadataSchema
public function ItemMetadataSchema(
customFields : IEnumerable<CustomFieldDefinition>,
identityRules : IEnumerable<IdentityRule>,
changeUnitVersionDefinitions : IEnumerable<ChangeUnitVersionDefinition>
)
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.
Exceptions
| Exception | Condition |
|---|---|
| ArgumentNullException | customFields or identityRules is a null reference (Nothing in Visual Basic). |
| ArgumentOutOfRangeException | customFields or identityRules contains no more data. |