4 writes to _context
System.DirectoryServices (4)
System\DirectoryServices\ActiveDirectory\ActiveDirectorySchemaClass.cs (4)
74
_context
= new DirectoryContext(context);
91
_context
= context;
134
_context
= context;
157
_context
= context;
47 references to _context
System.DirectoryServices (47)
System\DirectoryServices\ActiveDirectory\ActiveDirectorySchemaClass.cs (47)
275
_schemaEntry ??= DirectoryEntryManager.GetDirectoryEntry(
_context
, WellKnownDN.SchemaNamingContext);
284
throw ExceptionHelper.GetExceptionFromCOMException(
_context
, e);
289
throw new ActiveDirectoryOperationException(SR.Format(SR.ADAMInstanceNotFoundInConfigSet,
_context
.Name));
354
ActiveDirectorySchema schemaObject = ActiveDirectorySchema.GetSchema(
_context
);
364
if (Utils.Compare(schemaRoleOwner.Name,
_context
.GetServerName()) != 0)
366
DirectoryContext schemaRoleOwnerContext = Utils.GetNewDirectoryContext(schemaRoleOwner.Name, DirectoryContextType.DirectoryServer,
_context
);
388
throw ExceptionHelper.GetExceptionFromCOMException(
_context
, e);
433
return DirectoryEntryManager.GetDirectoryEntryInternal(
_context
, _classEntry.Path);
493
throw ExceptionHelper.GetExceptionFromCOMException(
_context
, e);
602
throw ExceptionHelper.GetExceptionFromCOMException(
_context
, e);
618
_possibleSuperiors = new ActiveDirectorySchemaClassCollection(
_context
, this, true /* isBound */, PropertyManager.PossibleSuperiors, possibleSuperiorsList, true /* onlyNames */);
623
_possibleSuperiors = new ActiveDirectorySchemaClassCollection(
_context
, this, true /* is Bound */, PropertyManager.PossibleSuperiors, new ArrayList());
632
_possibleSuperiors = new ActiveDirectorySchemaClassCollection(
_context
, this, true /* isBound */, PropertyManager.PossibleSuperiors, GetClasses(possibleSuperiorsList));
637
_possibleSuperiors = new ActiveDirectorySchemaClassCollection(
_context
, this, false /* is Bound */, PropertyManager.PossibleSuperiors, new ArrayList());
701
throw ExceptionHelper.GetExceptionFromCOMException(
_context
, e);
717
_mandatoryProperties = new ActiveDirectorySchemaPropertyCollection(
_context
, this, true /* isBound */, PropertyManager.MustContain, mandatoryPropertiesList, true /* onlyNames */);
722
_mandatoryProperties = new ActiveDirectorySchemaPropertyCollection(
_context
, this, true /* isBound */, PropertyManager.MustContain, new ArrayList());
731
_mandatoryProperties = new ActiveDirectorySchemaPropertyCollection(
_context
, this, true /* isBound */, PropertyManager.MustContain, GetProperties(GetPropertyValuesRecursively(propertyNames)));
736
_mandatoryProperties = new ActiveDirectorySchemaPropertyCollection(
_context
, this, false /* isBound */, PropertyManager.MustContain, new ArrayList());
777
throw ExceptionHelper.GetExceptionFromCOMException(
_context
, e);
793
_optionalProperties = new ActiveDirectorySchemaPropertyCollection(
_context
, this, true /* isBound */, PropertyManager.MayContain, optionalPropertiesList, true /* onlyNames */);
798
_optionalProperties = new ActiveDirectorySchemaPropertyCollection(
_context
, this, true /* isBound */, PropertyManager.MayContain, new ArrayList());
816
_optionalProperties = new ActiveDirectorySchemaPropertyCollection(
_context
, this, true /* isBound */, PropertyManager.MayContain, GetProperties(optionalPropertyList));
821
_optionalProperties = new ActiveDirectorySchemaPropertyCollection(
_context
, this, false /* isBound */, PropertyManager.MayContain, new ArrayList());
862
throw ExceptionHelper.GetExceptionFromCOMException(
_context
, e);
878
_auxiliaryClasses = new ActiveDirectorySchemaClassCollection(
_context
, this, true /* isBound */, PropertyManager.AuxiliaryClass, auxiliaryClassesList, true /* onlyNames */);
883
_auxiliaryClasses = new ActiveDirectorySchemaClassCollection(
_context
, this, true /* is Bound */, PropertyManager.AuxiliaryClass, new ArrayList());
892
_auxiliaryClasses = new ActiveDirectorySchemaClassCollection(
_context
, this, true /* isBound */, PropertyManager.AuxiliaryClass, GetClasses(GetPropertyValuesRecursively(propertyNames)));
897
_auxiliaryClasses = new ActiveDirectorySchemaClassCollection(
_context
, this, false /* isBound */, PropertyManager.AuxiliaryClass, new ArrayList());
913
_subClassOf ??= new ActiveDirectorySchemaClass(
_context
, (string)GetValueFromCache(PropertyManager.SubClassOf, true)!, (DirectoryEntry?)null, _schemaEntry);
1098
_schemaEntry ??= DirectoryEntryManager.GetDirectoryEntry(
_context
, WellKnownDN.SchemaNamingContext);
1100
_propertyValuesFromServer = GetPropertiesFromSchemaContainer(
_context
, _schemaEntry, (_isDefunctOnServer) ? _commonName! : _ldapDisplayName, _isDefunctOnServer);
1229
_classEntry = DirectoryEntryManager.GetDirectoryEntry(
_context
, (string)GetValueFromCache(PropertyManager.DistinguishedName, true)!);
1257
throw ExceptionHelper.GetExceptionFromCOMException(
_context
, e);
1277
_schemaEntry ??= DirectoryEntryManager.GetDirectoryEntry(
_context
, WellKnownDN.SchemaNamingContext);
1313
de.Username =
_context
.UserName;
1314
de.Password =
_context
.Password;
1316
ActiveDirectorySchemaClass schemaClass = new ActiveDirectorySchemaClass(
_context
, ldapDisplayName, de, _schemaEntry);
1323
throw ExceptionHelper.GetExceptionFromCOMException(
_context
, e);
1349
_schemaEntry ??= DirectoryEntryManager.GetDirectoryEntry(
_context
, WellKnownDN.SchemaNamingContext);
1385
de.Username =
_context
.UserName;
1386
de.Password =
_context
.Password;
1388
ActiveDirectorySchemaProperty schemaProperty = new ActiveDirectorySchemaProperty(
_context
, ldapDisplayName, de, _schemaEntry);
1395
throw ExceptionHelper.GetExceptionFromCOMException(
_context
, e);
1426
using ActiveDirectorySchemaClass auxSchemaClass = new ActiveDirectorySchemaClass(
_context
, auxSchemaClassName, (DirectoryEntry?)null, null);
1438
using ActiveDirectorySchemaClass auxSchemaClass = new ActiveDirectorySchemaClass(
_context
, auxSchemaClassName, (DirectoryEntry?)null, null);
1450
throw ExceptionHelper.GetExceptionFromCOMException(
_context
, e);