How to filter more than one file extension of the save email attachment?
1 Like
have a look here:
Instead of count e.g. return the filtered list with:
Messages(0).Attachments.Where(Function (x) Regex.IsMatch(Path.GetExtension(x.Name).ToUpper,Pattern)).toList