2 writes to ADAMHandle
System.DirectoryServices (2)
System\DirectoryServices\ActiveDirectory\DirectoryContext.cs (2)
702ADAMHandle = ADHandle; 706ADAMHandle = new SafeLibraryHandle(tempHandle);
21 references to ADAMHandle
System.DirectoryServices (21)
System\DirectoryServices\ActiveDirectory\ADAMInstance.cs (20)
304CheckConsistencyHelper(_ADAMHandle, DirectoryContext.ADAMHandle); 324info = GetReplicationInfoHelper(_ADAMHandle, (int)DS_REPL_INFO_TYPE.DS_REPL_INFO_CURSORS_3_FOR_NC, (int)DS_REPL_INFO_TYPE.DS_REPL_INFO_CURSORS_FOR_NC, partition, ref advanced, context, DirectoryContext.ADAMHandle); 325return ConstructReplicationCursors(_ADAMHandle, advanced, info, partition, this, DirectoryContext.ADAMHandle); 338info = GetReplicationInfoHelper(_ADAMHandle, (int)DS_REPL_INFO_TYPE.DS_REPL_INFO_PENDING_OPS, (int)DS_REPL_INFO_TYPE.DS_REPL_INFO_PENDING_OPS, null, ref advanced, 0, DirectoryContext.ADAMHandle); 339return ConstructPendingOperations(info, this, DirectoryContext.ADAMHandle); 358info = GetReplicationInfoHelper(_ADAMHandle, (int)DS_REPL_INFO_TYPE.DS_REPL_INFO_NEIGHBORS, (int)DS_REPL_INFO_TYPE.DS_REPL_INFO_NEIGHBORS, partition, ref advanced, 0, DirectoryContext.ADAMHandle); 359return ConstructNeighbors(info, this, DirectoryContext.ADAMHandle); 372info = GetReplicationInfoHelper(_ADAMHandle, (int)DS_REPL_INFO_TYPE.DS_REPL_INFO_NEIGHBORS, (int)DS_REPL_INFO_TYPE.DS_REPL_INFO_NEIGHBORS, null, ref advanced, 0, DirectoryContext.ADAMHandle); 373return ConstructNeighbors(info, this, DirectoryContext.ADAMHandle); 397info = GetReplicationInfoHelper(_ADAMHandle, (int)DS_REPL_INFO_TYPE.DS_REPL_INFO_METADATA_2_FOR_OBJ, (int)DS_REPL_INFO_TYPE.DS_REPL_INFO_METADATA_FOR_OBJ, objectPath, ref advanced, 0, DirectoryContext.ADAMHandle); 398return ConstructMetaData(advanced, info, this, DirectoryContext.ADAMHandle); 420SyncReplicaHelper(_ADAMHandle, true, partition, sourceServer, 0, DirectoryContext.ADAMHandle); 436SyncReplicaHelper(_ADAMHandle, true, partition, null, DS_REPSYNC_ASYNCHRONOUS_OPERATION | DS_REPSYNC_ALL_SOURCES, DirectoryContext.ADAMHandle); 452SyncReplicaAllHelper(_ADAMHandle, _syncAllFunctionPointer, partition, options, SyncFromAllServersCallback, DirectoryContext.ADAMHandle); 814info = GetReplicationInfoHelper(_ADAMHandle, (int)type, (int)type, null, ref advanced, 0, DirectoryContext.ADAMHandle); 815return ConstructFailures(info, this, DirectoryContext.ADAMHandle); 828_authIdentity = Utils.GetAuthIdentity(context, DirectoryContext.ADAMHandle); 834_ADAMHandle = Utils.GetDSHandle(bindingString, null, _authIdentity, DirectoryContext.ADAMHandle); 844Utils.FreeDSHandle(_ADAMHandle, DirectoryContext.ADAMHandle); 847Utils.FreeAuthIdentity(_authIdentity, DirectoryContext.ADAMHandle);
System\DirectoryServices\ActiveDirectory\DirectoryContext.cs (1)
681[MemberNotNull(nameof(ADAMHandle))]