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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

•Notes<br />

•S<strong>MS</strong><br />

The Search request can include one or more airsync:Class elements in the request to limit the<br />

type of data included in the Search response.<br />

If one or more airsync:Class elements are not included in the Search request, the server will<br />

return all supported classes.<br />

If the airsync:Class element is included as a child of any element other than the And element, the<br />

server responds with a Status element (section 2.2.3.152.12) value of 8 (SearchTooComplex).<br />

2.2.3.26.5 Class (Sync)<br />

The Class element is an optional child element of the Add element or the Options element in Sync<br />

command requests. The Class element is an optional child element of the Delete element, the<br />

Change element, or the Add element in Sync command responses.<br />

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

<strong>Command</strong><br />

request/response<br />

Parent elements<br />

Child<br />

elements<br />

Data type<br />

Number<br />

allowed<br />

Sync command request<br />

(section 2.2.2.19.1)<br />

Add (section<br />

2.2.3.7.2)<br />

Options (section<br />

2.2.3.107.5)<br />

None<br />

string ([<strong>MS</strong>-<br />

ASDTYPE] section<br />

2.6)<br />

0...1<br />

(optional)<br />

Sync command response<br />

(section 2.2.2.19.2)<br />

Delete<br />

(section 2.2.3.40.2)<br />

Change (section<br />

2.2.3.23)<br />

Add (section<br />

2.2.3.7.2)<br />

None string 0...1<br />

(optional)<br />

As a child element of the Add element in the Sync command request, the Class element<br />

identifies the class of the item being added to the collection.<br />

As a child element of the Options element in the Sync command request, the Class element<br />

assigns the filters within the Options container to a given class. Options for the same Class within<br />

the same Collection (section 2.2.3.28.2) MUST NOT be redefined. A Status element (section<br />

2.2.3.152.16) value of 4 is returned if options for the same Class within the same Collection are<br />

redefined. The Class element is not necessary for the default items contained within the collection<br />

(contacts in a contacts folder for example). For example, to sync S<strong>MS</strong> messages, include an<br />

Options node with class "S<strong>MS</strong>". To also sync e-mail messages at the same time, include another<br />

Options node with class "Email". Only S<strong>MS</strong> messages and e-mail messages can be synchronized at<br />

the same time; a request for any other combination of classes will fail with a status value of 4. The<br />

result of including more than one Class element as child elements of the Options element is<br />

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

As a child element of the Delete element in the Sync command response, the Class element<br />

identifies the class of the item being deleted from the collection.<br />

As a child element of the Change element in the Sync command response, the Class element<br />

identifies the class of the item being changed in the collection.<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 />

116 / 369

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

Saved successfully!

Ooh no, something went wrong!