public static void Run()
{
// ExStart:AccessAnotherMailboxUsingExchangeClient
// Create instance of ExchangeClient class by giving credentials
ExchangeClient client = new ExchangeClient("http://MachineName/exchange/Username","Username", "password", "domain");
// Get Exchange mailbox info of other email account
ExchangeMailboxInfo mailboxInfo = client.GetMailboxInfo("[email protected]");
// ExEnd:AccessAnotherMailboxUsingExchangeClient
}
}