Megosztás a következőn keresztül:


ResourceMirror.CompareToResource<ItemType,ResourceType> Delegate

Definition

Function to compare a source item with a resource. It should return: -1 if resource is associated with a smaller item than item. 1 if resource is associated with a larger item than item. 0 if resource is associated with item.

public delegate int ResourceMirror.CompareToResource<ItemType,ResourceType>(ItemType item, ResourceType resource);
type ResourceMirror.CompareToResource<'ItemType, 'ResourceType> = delegate of 'ItemType * 'ResourceType -> int
Public Delegate Function ResourceMirror.CompareToResource(Of ItemType, ResourceType)(item As ItemType, resource As ResourceType) As Integer 

Type Parameters

ItemType

Type of source data.

ResourceType

Type of managed resource.

Parameters

item
ItemType

Instance of source data.

resource
ResourceType

Instance of resource.

Return Value

Remarks

Note that "smaller" and "larger" above must have the identical meaning to the comparison the lists input into Sync are sorted by.

Applies to