Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ExchangeServiceBinding service = new ExchangeServiceBinding();
- service.Credentials = new NetworkCredential("testexchange", "username", "domain");
- service.RequestServerVersionValue = new RequestServerVersion();
- service.RequestServerVersionValue.Version = ExchangeVersionType.Exchange2010_SP1;
- if (!String.IsNullOrEmpty(ExchangeHelper.GetServerName()))
- {
- service.Url = ExchangeHelper.GetServerName();
- }
- List<EmailAddressType> roomsList = ExchangeHelper.GetRooms(service);
- DateTime startdate = new DateTime(2011, 01, 01, 09, 30, 00);
- DateTime enddate = new DateTime(2011, 03, 03, 09, 30, 00);
- if (roomsList != null && roomsList.Count > 0)
- {
- //do something
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement