示例#1
0
        public GlobalCatalogCollection FindAllDiscoverableGlobalCatalogs()
        {
            long flag = (long)PrivateLocatorFlags.GCRequired;

            CheckIfDisposed();
            return(new GlobalCatalogCollection(Locator.EnumerateDomainControllers(_context, Name, null, flag)));
        }
        public GlobalCatalogCollection FindAllDiscoverableGlobalCatalogs()
        {
            long dcFlags = 0x40L;

            this.CheckIfDisposed();
            return(new GlobalCatalogCollection(Locator.EnumerateDomainControllers(this.context, this.Name, null, dcFlags)));
        }
        private ReadOnlyDirectoryServerCollection FindAllDiscoverableDirectoryServersInternal(string siteName)
        {
            if ((siteName != null) && (siteName.Length == 0))
            {
                throw new ArgumentException(Res.GetString("EmptyStringParameter"), "siteName");
            }
            if (!this.committed)
            {
                throw new InvalidOperationException(Res.GetString("CannotPerformOperationOnUncommittedObject"));
            }
            long dcFlags = 0x8000L;

            return(new ReadOnlyDirectoryServerCollection(Locator.EnumerateDomainControllers(base.context, this.dnsName, siteName, dcFlags)));
        }
        public GlobalCatalogCollection FindAllDiscoverableGlobalCatalogs(string siteName)
        {
            long dcFlags = 0x40L;

            this.CheckIfDisposed();
            if (siteName == null)
            {
                throw new ArgumentNullException("siteName");
            }
            if (siteName.Length == 0)
            {
                throw new ArgumentException(Res.GetString("EmptyStringParameter"), "siteName");
            }
            return(new GlobalCatalogCollection(Locator.EnumerateDomainControllers(this.context, this.Name, siteName, dcFlags)));
        }
示例#5
0
        public GlobalCatalogCollection FindAllDiscoverableGlobalCatalogs(string siteName)
        {
            long flag = (long)PrivateLocatorFlags.GCRequired;

            CheckIfDisposed();

            if (siteName == null)
            {
                throw new ArgumentNullException(nameof(siteName));
            }

            if (siteName.Length == 0)
            {
                throw new ArgumentException(SR.EmptyStringParameter, nameof(siteName));
            }

            return(new GlobalCatalogCollection(Locator.EnumerateDomainControllers(_context, Name, siteName, flag)));
        }