2.2.3.30.5 CollectionId (Search)

The airsync:CollectionId element is an optional child element of the And element in Search command requests that specifies the folder in which to search. The airsync:CollectionId element is an optional child element of the Result element in Search command responses that specifies the folder in which the item was found.

Elements referenced in this section are defined in the Search namespace, except where otherwise indicated by the presence of a namespace prefix (as defined in section 2.2.4).

Command request/response

Parent elements

Child elements

Data type

Number allowed

Search command request (section 2.2.1.16)

And (section 2.2.3.10)

None

string ([MS-ASDTYPE] section 2.7)

0...N (optional)

Search command response

Result (section 2.2.3.155.3)

None

string

0...N (optional)

In a Search command request, multiple folders can be specified by including multiple airsync:CollectionId elements. If the DeepTraversal element (section 2.2.3.41.2) is present, it applies to all folders under each airsync:CollectionId element. If the airsync:CollectionId element is included as a child of any element other than And, the server responds with a Status element (section 2.2.3.177.13) value of 8 (SearchTooComplex).

Protocol Versions

The following table specifies the protocol versions that support this element. The client indicates the protocol version being used by setting either the MS-ASProtocolVersion header, as specified in [MS-ASHTTP] section 2.2.1.1.2.6, or the Protocol version field, as specified in [MS-ASHTTP] section 2.2.1.1.1.1, in the request.

Protocol version

Element support

2.5

12.0

Yes

12.1

Yes

14.0

Yes

14.1

Yes

16.0

Yes

16.1

Yes