MaxPictures (ResolveRecipients)

The MaxPictures element is an optional child element of the Picture element in ResolveRecipients command requests that limits the number of contact photos returned in the server response.

All elements referenced in this section are defined in the ResolveRecipients namespace.

Command request/response

Parent elements

Child elements

Data type

Number allowed

ResolveRecipients command request (section

Picture (section


integer ([MS-ASDTYPE] section 2.6)

0…..1 (optional)

The value of the MaxPictures element ​MUST NOT be less than 0.

The server returns the first N results that have contact photos, where N is the value of the MaxPictures element. After the MaxPictures limit is reached, the server returns Status element (section value 173 (NoPicture) if the contact has no photo, Status element value 174 (PictureTooLarge) if the contact’s photo is too large, or Status element value 175 (PictureLimitReached) if the contact has a photo but the MaxPictures limit was reached.

Note that the MaxPictures element identifies the number of contact photos returned per query. Therefore, if the client includes three recipients to resolve and sets the MaxPictures element value to 3 in the ResolveRecipients command request, a maximum of 9 contact photos can be returned.

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, or the Protocol version field, as specified in [MS-ASHTTP] section, in the request.

Protocol version

Element support