public ActiveDirectoryService(DomainPath domainPath) { if (domainPath == null) { throw new ArgumentNullException("domainPath", "Domain path must be defined."); } this.domainPath = domainPath; }