How to invoke a method with (Outlook.Application application) as parameter in C#?
问题 I am trying to use this solution in which method DisplayAccountInformation() is being called. public partial class OutlookContacts : Form { public OutlookContacts() { InitializeComponent(); //DisplayAccountInformation(??); } public static void DisplayAccountInformation(Outlook.Application application) { // The Namespace Object (Session) has a collection of accounts. Outlook.Accounts accounts = application.Session.Accounts; // Concatenate a message with information about all accounts. var