Outlook.Folder control.Context; string query ="urn:schemas:httpmail:hasattachment = 1"; oFolder.CurrentView.Filter = query; oFolder.CurrentView.Apply();
Outlook.Items emails = oFolder.Items; emails =emails.Restrict("[Unread]=true")
hasattachments
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)