MSSyncContextReadResult Class Reference

Inherits from NSObject
Declared in MSSyncContextReadResult.h

Overview

The MSSyncContextReadResult class represents the results of a read from a local table. Providing the list of items found and optionally a total count of records matching the query.

Initializing the MSSyncContextReadResult Object

– initWithCount:items:

Creates a MSSyncContextReadResult with the given items and total count.

- (nonnull instancetype)initWithCount:(NSInteger)count items:(nonnull NSArray *)items

Discussion

Creates a MSSyncContextReadResult with the given items and total count.

Declared In

MSSyncContextReadResult.h

Accessing search results

  totalCount

The total record count of the matching records in the table, but does not indicate the actual returned record count. If the query did not request a total count, this value should be -1.

@property (nonatomic, readonly) NSInteger totalCount

Discussion

The total record count of the matching records in the table, but does not indicate the actual returned record count. If the query did not request a total count, this value should be -1.

Declared In

MSSyncContextReadResult.h

  items

An NSArray of NSDictionaries, with each dictionary representing a row in the table.

@property (nonatomic, readonly, strong, nonnull) NSArray *items

Discussion

An NSArray of NSDictionaries, with each dictionary representing a row in the table.

Declared In

MSSyncContextReadResult.h