PictureRequest

PictureRequest class

Indicates that the client is requesting that photos be returned in the server response. The Picture is not supported when the protocol version is 12.1 or 14.0. Contains the data related to the photos request.

public class PictureRequest

Constructors

Name Description
PictureRequest() The default constructor.

Properties

Name Description
MaxPictures { get; set; } Limits the number of contact photos returned in the server response. The MaxPictures is not supported when the protocol version is 12.1 or 14.0. The server returns the first N results that have contact photos, where N is the value of the MaxPictures. After the MaxPictures limit is reached, the server returns Status value 173 (NoPicture) if the contact has no photo, Status value 174 (PictureTooLarge) if the contact’s photo is too large, or Status value 175 (PictureLimitReached) if the contact has a photo but the MaxPictures limit was reached. Note that the MaxPictures identifies the number of contact photos returned per query. Therefore, if the client includes three recipients to resolve and sets the MaxPictures value to 3 in the ResolveRecipients command request, a maximum of 9 contact photos can be returned.
MaxSize { get; set; } Specifies the maximum size of an individual contact photo that is returned in the response, in bytes. The MaxSize is not supported when the protocol version is 12.1 or 14.0. The maximum value of the MaxSize is 100 KB or 102400 bytes.

See Also