![]() If your users log on to Windows with the same credentials they use to access their Exchange server, set the UseDefaultCredentials property to true to enable your application to connect to the Exchange server without asking the user for a user name and password.If you need to specify the user name and password, set the Credentials property. Table 1: Ways that you can use the ExchangeService class It has quite a bit of functionality built in. But the ExchangeService class goes beyond just serving as a starting point for EWS Managed API client development. ![]() Service.AutodiscoverUrl(userEmailAddress, RedirectionCallback) Ĭonsole.WriteLine("EWS Endpoint: as a delegate.",Ī) īefore you can use the EWS Managed API to perform any task, you must create an instance of the ExchangeService class. Look up the user's EWS endpoint by using Autodiscover. Service.Credentials = new NetworkCredential(userEmailAddress, userPassword) Static void UseExchangeService(string userEmailAddress, SecureString userPassword)ĮxchangeService service = new ExchangeService() ![]() Static bool RedirectionCallback(string url) ![]() The following code example shows you how to set a specific user name and password, discover the EWS endpoint by using Autodiscover, create two new contacts in the user's default Contacts folder, and grant a second user delegate access to the user's Calendar folder. ExchangeServiceBase ExchangeService Examples ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |