コード例 #1
0
 public static void Run()
 {
     // ExStart:AddingHeadersToEWSRequests
     using (IEWSClient client = EWSClient.GetEWSClient("exchange.domain.com/ews/Exchange.asmx", "username", "password", ""))
     {
         client.AddHeader("X-AnchorMailbox", "*****@*****.**");
         ExchangeMessageInfoCollection messageInfoCol = client.ListMessages(client.MailboxInfo.InboxUri);
     }
     // ExEnd:AddingHeadersToEWSRequests
 }