InternalRemoveContactPicture method
void
InternalRemoveContactPicture()
Implementation
/* private */
void InternalRemoveContactPicture() {
// Iterates in reverse order to remove file attachments that have IsContactPhoto set to true.
for (int index = this.Attachments.Count - 1; index >= 0; index--) {
FileAttachment fileAttachment = this.Attachments[index] as FileAttachment;
if (fileAttachment != null) {
if (fileAttachment.IsContactPhoto!) {
this.Attachments.Remove(fileAttachment);
}
}
}
}