public static void Run() { const string mailboxUri = "https://exchange.domain.com/ews/Exchange.asmx"; const string domain = @""; const string username = @"username"; const string password = @"password"; NetworkCredential credential = new NetworkCredential(username, password, domain); try { // ExStart:GettingUnifiedMessagingConfigurationInformation IEWSClient client = EWSClient.GetEWSClient(mailboxUri, credential); UnifiedMessagingConfiguration umConf = client.GetUMConfiguration(); // ExEnd:GettingUnifiedMessagingConfigurationInformation } catch (Exception ex) { Console.WriteLine(ex.Message); } }