你不能,因为你没有对它们的引用.
将它们移到方法调用之外:
using (var attachment1 = new System.Net.Mail.Attachment(path1)) using (var attachment2 = new System.Net.Mail.Attachment(path2)) { SendEmail("message", "subject", attachment1, attachment2); }