다음을 통해 공유


ResourceMirror.CompareToResource<ItemType,ResourceType> 대리자

정의

리소스와 원본 항목을 비교하는 함수입니다. 리소스가 항목보다 작은 항목과 연결된 경우 -1을 반환해야 합니다. 리소스가 항목보다 큰 항목과 연결된 경우 1입니다. 리소스가 항목과 연결된 경우 0입니다.

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 

형식 매개 변수

ItemType

원본 데이터의 형식입니다.

ResourceType

관리되는 리소스의 유형입니다.

매개 변수

item
ItemType

원본 데이터의 인스턴스입니다.

resource
ResourceType

리소스 인스턴스입니다.

반환 값

설명

위의 "작은" 및 "더 큰"은 동기화에 대한 목록 입력이 정렬된 비교와 동일한 의미를 가져야 합니다.

적용 대상