11.01.2015 Views

[MS-ASCMD]: ActiveSync Command Reference Protocol Specification

[MS-ASCMD]: ActiveSync Command Reference Protocol Specification

[MS-ASCMD]: ActiveSync Command Reference Protocol Specification

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

The Range element value specifies a number of entries, but indicates different things depending on<br />

whether the element is in the request or the response XML.<br />

The format of the Range element value is in the form of a zero-based index specifier, formed with a<br />

zero, a hyphen, and another numeric value: "m-n." The m indicates the lowest index of a zerobased<br />

array that would hold the items. The n indicates the highest index of a zero-based array that<br />

would hold the items. For example, a Range element value of 0–9 indicates 10 items, and 0–10<br />

indicates 11 items. A Range element value of 0–0 indicates 1 item.<br />

If the request does not include a Range element, the default Range value for each Store type is<br />

used. The following table identifies the default Range values and maximum results returned for each<br />

Store type:<br />

Store value Default Range value Maximum results returned<br />

Mailbox 0-99 100<br />

DocumentLibrary 0-999 1000<br />

GAL 0-99 100<br />

If the Range element value specified in the request exceeds the default range value, a Status<br />

element (section 2.2.3.152.12) value of 12 is returned to indicate that the maximum range has<br />

been exceeded, as specified in section 2.2.3.152.12.<br />

In the Search command response, the Total element (section 2.2.3.158.2) indicates an estimate of<br />

the total number of entries that matched the Query element (section 2.2.3.119) value.<br />

Search results are stored in a search folder (2) on the server. This way, when a client comes back<br />

with the same query but a new row range, rows are pulled from the result set that is currently<br />

stored in the search folder. The entire result set does not have to be rebuilt.<br />

2.2.3.121 RebuildResults<br />

The RebuildResults element is an optional child element of the Options element in Search<br />

command requests that forces the server to rebuild the search folder (2) that corresponds to a given<br />

query.<br />

All elements referenced in this section are defined in the Search namespace.<br />

<strong>Command</strong> request/response<br />

Parent elements<br />

Child<br />

elements<br />

Data<br />

type<br />

Number<br />

allowed<br />

Search command request (section<br />

2.2.2.14.1)<br />

Options (section<br />

2.2.3.107.4)<br />

None None 0...1<br />

(optional)<br />

The RebuildResults element is an empty tag element, meaning it has no value or data type. It is<br />

distinguished only by the presence or absence of the tag.<br />

The result of including more than one RebuildResults element in a Search command request is<br />

undefined. The server MAY return a protocol status error in response to such a command request.<br />

The search results (that is, the result set) are stored in a search folder on the server. This way,<br />

when a client comes back with the same query but a new row range, rows are pulled from the result<br />

set that is currently stored in the search folder. The entire result set does not have to be rebuilt.<br />

[<strong>MS</strong>-<strong>ASCMD</strong>] — v20110315<br />

<strong>ActiveSync</strong> <strong>Command</strong> <strong>Reference</strong> <strong>Protocol</strong> <strong>Specification</strong><br />

Copyright © 2011 Microsoft Corporation.<br />

Release: Tuesday, March 15, 2011<br />

195 / 369

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!