3 writes to context
System.DirectoryServices (3)
System\DirectoryServices\ActiveDirectory\ADAMInstance.cs (2)
40this.context = context; 55this.context = context;
System\DirectoryServices\ActiveDirectory\DomainController.cs (1)
76this.context = context;
65 references to context
System.DirectoryServices (65)
System\DirectoryServices\ActiveDirectory\ADAMInstance.cs (25)
242throw ExceptionHelper.GetExceptionFromCOMException(context, e); 278roleObjectEntry = DirectoryEntryManager.GetDirectoryEntry(context, roleObjectDN); 284throw ExceptionHelper.GetExceptionFromCOMException(context, e); 469throw ExceptionHelper.GetExceptionFromCOMException(context, e); 489DirectoryContext configSetContext = Utils.GetNewDirectoryContext(Name, DirectoryContextType.DirectoryServer, context); 504_cachedHostName = (string)PropertyManager.GetPropertyValue(context, serverEntry, PropertyManager.DnsHostName)!; 518_cachedLdapPort = (int)PropertyManager.GetPropertyValue(context, ntdsaEntry, PropertyManager.MsDSPortLDAP)!; 532_cachedSslPort = (int)PropertyManager.GetPropertyValue(context, ntdsaEntry, PropertyManager.MsDSPortSSL)!; 554schemaEntry = DirectoryEntryManager.GetDirectoryEntry(context, directoryEntryMgr.ExpandWellKnownDN(WellKnownDN.SchemaNamingContext)); 556if (NtdsaObjectName.Equals((string)PropertyManager.GetPropertyValue(context, schemaEntry, PropertyManager.FsmoRoleOwner)!)) 561partitionsEntry = DirectoryEntryManager.GetDirectoryEntry(context, directoryEntryMgr.ExpandWellKnownDN(WellKnownDN.PartitionsContainer)); 563if (NtdsaObjectName.Equals((string)PropertyManager.GetPropertyValue(context, partitionsEntry, PropertyManager.FsmoRoleOwner)!)) 573throw ExceptionHelper.GetExceptionFromCOMException(context, e); 602_cachedDefaultPartition = (string)PropertyManager.GetPropertyValue(context, ntdsaEntry, PropertyManager.MsDSDefaultNamingContext)!; 607throw ExceptionHelper.GetExceptionFromCOMException(context, e); 672DirectoryEntry siteEntry = DirectoryEntryManager.GetDirectoryEntry(context, SiteObjectName); 675cachedSiteName = (string)PropertyManager.GetPropertyValue(context, siteEntry, PropertyManager.Cn)!; 719DirectoryEntry rootDSE = DirectoryEntryManager.GetDirectoryEntry(context, WellKnownDN.RootDSE); 722cachedServerObjectName = (string)PropertyManager.GetPropertyValue(context, rootDSE, PropertyManager.ServerName)!; 726throw ExceptionHelper.GetExceptionFromCOMException(context, e); 744DirectoryEntry rootDSE = DirectoryEntryManager.GetDirectoryEntry(context, WellKnownDN.RootDSE); 747cachedNtdsaObjectName = (string)PropertyManager.GetPropertyValue(context, rootDSE, PropertyManager.DsServiceName)!; 751throw ExceptionHelper.GetExceptionFromCOMException(context, e); 770byte[] guidByteArray = (byte[])PropertyManager.GetPropertyValue(context, ntdsaEntry, PropertyManager.ObjectGuid)!; 828_authIdentity = Utils.GetAuthIdentity(context, DirectoryContext.ADAMHandle);
System\DirectoryServices\ActiveDirectory\DirectoryServer.cs (15)
97newParentEntry = DirectoryEntryManager.GetDirectoryEntry(context, parentDN); 104_ = (string?)PropertyManager.GetPropertyValue(context, serverEntry, PropertyManager.DistinguishedName); 111throw ExceptionHelper.GetExceptionFromCOMException(context, e); 147return DirectoryEntryManager.GetDirectoryEntry(context, serverName); 223rootDSE = DirectoryEntryManager.GetDirectoryEntry(context, WellKnownDN.RootDSE); 232serverNtdsaEntry = DirectoryEntryManager.GetDirectoryEntry(context, ntdsaName); 245throw ExceptionHelper.GetExceptionFromCOMException(context, e); 258throw ExceptionHelper.GetExceptionFromCOMException(context, e); 276internal DirectoryContext Context => context; 356DirectoryEntry verifyEntry = DirectoryEntryManager.GetDirectoryEntry(this.context, partition); 703DirectoryContext newContext = Utils.GetNewDirectoryContext(sourceServer, DirectoryContextType.DirectoryServer, context); 763DirectoryContext newContext = Utils.GetNewDirectoryContext(Name, DirectoryContextType.DirectoryServer, context); 768DirectoryEntry de = DirectoryEntryManager.GetDirectoryEntry(Utils.GetNewDirectoryContext(Name, DirectoryContextType.DirectoryServer, context), srchDN); 806DirectoryEntry de = DirectoryEntryManager.GetDirectoryEntry(Utils.GetNewDirectoryContext(Name, DirectoryContextType.DirectoryServer, context), siteName); 815DirectoryContext newContext = Utils.GetNewDirectoryContext(Name, DirectoryContextType.DirectoryServer, context);
System\DirectoryServices\ActiveDirectory\DomainController.cs (18)
277throw ExceptionHelper.GetExceptionFromCOMException(context, e); 280return new GlobalCatalog(context, Name); 309throw ExceptionHelper.GetExceptionFromCOMException(context, e); 331throw ExceptionHelper.GetExceptionFromCOMException(context, e); 380roleObjectEntry = DirectoryEntryManager.GetDirectoryEntry(context, roleObjectDN); 401throw ExceptionHelper.GetExceptionFromCOMException(context, e); 589DirectoryContext forestContext = Utils.GetNewDirectoryContext(Name, DirectoryContextType.DirectoryServer, context); 602DirectoryEntry rootDSE = DirectoryEntryManager.GetDirectoryEntry(context, WellKnownDN.RootDSE); 607serverUTCTime = (string)PropertyManager.GetPropertyValue(context, rootDSE, PropertyManager.CurrentTime)!; 623DirectoryEntry rootDSE = DirectoryEntryManager.GetDirectoryEntry(context, WellKnownDN.RootDSE); 628serverHighestCommittedUsn = (string)PropertyManager.GetPropertyValue(context, rootDSE, PropertyManager.HighestCommittedUSN)!; 648_cachedOSVersion = (string)PropertyManager.GetPropertyValue(context, computerEntry, PropertyManager.OperatingSystem)!; 665string osVersion = (string)PropertyManager.GetPropertyValue(context, computerEntry, PropertyManager.OperatingSystemVersion)!; 704throw ExceptionHelper.GetExceptionFromCOMException(context, e); 709DirectoryContext domainContext = Utils.GetNewDirectoryContext(Name, DirectoryContextType.DirectoryServer, context); 1185_authIdentity = Utils.GetAuthIdentity(context, DirectoryContext.ADHandle); 1306de.Username = context.UserName; 1307de.Password = context.Password;
System\DirectoryServices\ActiveDirectory\GlobalCatalog.cs (7)
202throw ExceptionHelper.GetExceptionFromCOMException(context, e); 209return new DomainController(context, Name); 236throw ExceptionHelper.GetExceptionFromCOMException(context, e); 238_ = Utils.GetNewDirectoryContext(Name, DirectoryContextType.DirectoryServer, context); 239_schema = new ActiveDirectorySchema(context, schemaNC); 430de.Username = context.UserName; 431de.Password = context.Password;