# Class ActiveSubjectCollection Namespace: [Aeon.Environment](Aeon.Environment.md) Assembly: Aeon.Environment.dll ```csharp public class ActiveSubjectCollection : KeyedCollection, IList, ICollection, IList, ICollection, IReadOnlyList, IReadOnlyCollection, IEnumerable, IEnumerable ``` #### Inheritance [object](https://learn.microsoft.com/dotnet/api/system.object) ← [Collection](https://learn.microsoft.com/dotnet/api/system.collections.objectmodel.collection\-1) ← [KeyedCollection](https://learn.microsoft.com/dotnet/api/system.collections.objectmodel.keyedcollection\-2) ← [ActiveSubjectCollection](Aeon.Environment.ActiveSubjectCollection.md) #### Implements [IList](https://learn.microsoft.com/dotnet/api/system.collections.generic.ilist\-1), [ICollection](https://learn.microsoft.com/dotnet/api/system.collections.generic.icollection\-1), [IList](https://learn.microsoft.com/dotnet/api/system.collections.ilist), [ICollection](https://learn.microsoft.com/dotnet/api/system.collections.icollection), [IReadOnlyList](https://learn.microsoft.com/dotnet/api/system.collections.generic.ireadonlylist\-1), [IReadOnlyCollection](https://learn.microsoft.com/dotnet/api/system.collections.generic.ireadonlycollection\-1), [IEnumerable](https://learn.microsoft.com/dotnet/api/system.collections.generic.ienumerable\-1), [IEnumerable](https://learn.microsoft.com/dotnet/api/system.collections.ienumerable) #### Inherited Members [KeyedCollection.Contains\(string\)](https://learn.microsoft.com/dotnet/api/system.collections.objectmodel.keyedcollection\-2.contains), [KeyedCollection.Remove\(string\)](https://learn.microsoft.com/dotnet/api/system.collections.objectmodel.keyedcollection\-2.remove), [KeyedCollection.ChangeItemKey\(EnvironmentSubjectStateEntry, string\)](https://learn.microsoft.com/dotnet/api/system.collections.objectmodel.keyedcollection\-2.changeitemkey), [KeyedCollection.ClearItems\(\)](https://learn.microsoft.com/dotnet/api/system.collections.objectmodel.keyedcollection\-2.clearitems), [KeyedCollection.GetKeyForItem\(EnvironmentSubjectStateEntry\)](https://learn.microsoft.com/dotnet/api/system.collections.objectmodel.keyedcollection\-2.getkeyforitem), [KeyedCollection.InsertItem\(int, EnvironmentSubjectStateEntry\)](https://learn.microsoft.com/dotnet/api/system.collections.objectmodel.keyedcollection\-2.insertitem), [KeyedCollection.RemoveItem\(int\)](https://learn.microsoft.com/dotnet/api/system.collections.objectmodel.keyedcollection\-2.removeitem), [KeyedCollection.SetItem\(int, EnvironmentSubjectStateEntry\)](https://learn.microsoft.com/dotnet/api/system.collections.objectmodel.keyedcollection\-2.setitem), [KeyedCollection.Comparer](https://learn.microsoft.com/dotnet/api/system.collections.objectmodel.keyedcollection\-2.comparer), [KeyedCollection.this\[string\]](https://learn.microsoft.com/dotnet/api/system.collections.objectmodel.keyedcollection\-2.item), [KeyedCollection.Dictionary](https://learn.microsoft.com/dotnet/api/system.collections.objectmodel.keyedcollection\-2.dictionary), [Collection.Add\(EnvironmentSubjectStateEntry\)](https://learn.microsoft.com/dotnet/api/system.collections.objectmodel.collection\-1.add), [Collection.Clear\(\)](https://learn.microsoft.com/dotnet/api/system.collections.objectmodel.collection\-1.clear), [Collection.CopyTo\(EnvironmentSubjectStateEntry\[\], int\)](https://learn.microsoft.com/dotnet/api/system.collections.objectmodel.collection\-1.copyto), [Collection.Contains\(EnvironmentSubjectStateEntry\)](https://learn.microsoft.com/dotnet/api/system.collections.objectmodel.collection\-1.contains), [Collection.GetEnumerator\(\)](https://learn.microsoft.com/dotnet/api/system.collections.objectmodel.collection\-1.getenumerator), [Collection.IndexOf\(EnvironmentSubjectStateEntry\)](https://learn.microsoft.com/dotnet/api/system.collections.objectmodel.collection\-1.indexof), [Collection.Insert\(int, EnvironmentSubjectStateEntry\)](https://learn.microsoft.com/dotnet/api/system.collections.objectmodel.collection\-1.insert), [Collection.Remove\(EnvironmentSubjectStateEntry\)](https://learn.microsoft.com/dotnet/api/system.collections.objectmodel.collection\-1.remove), [Collection.RemoveAt\(int\)](https://learn.microsoft.com/dotnet/api/system.collections.objectmodel.collection\-1.removeat), [Collection.ClearItems\(\)](https://learn.microsoft.com/dotnet/api/system.collections.objectmodel.collection\-1.clearitems), [Collection.InsertItem\(int, EnvironmentSubjectStateEntry\)](https://learn.microsoft.com/dotnet/api/system.collections.objectmodel.collection\-1.insertitem), [Collection.RemoveItem\(int\)](https://learn.microsoft.com/dotnet/api/system.collections.objectmodel.collection\-1.removeitem), [Collection.SetItem\(int, EnvironmentSubjectStateEntry\)](https://learn.microsoft.com/dotnet/api/system.collections.objectmodel.collection\-1.setitem), [Collection.Count](https://learn.microsoft.com/dotnet/api/system.collections.objectmodel.collection\-1.count), [Collection.Items](https://learn.microsoft.com/dotnet/api/system.collections.objectmodel.collection\-1.items), [Collection.this\[int\]](https://learn.microsoft.com/dotnet/api/system.collections.objectmodel.collection\-1.item), [object.ToString\(\)](https://learn.microsoft.com/dotnet/api/system.object.tostring), [object.Equals\(object\)](https://learn.microsoft.com/dotnet/api/system.object.equals\#system\-object\-equals\(system\-object\)), [object.Equals\(object, object\)](https://learn.microsoft.com/dotnet/api/system.object.equals\#system\-object\-equals\(system\-object\-system\-object\)), [object.ReferenceEquals\(object, object\)](https://learn.microsoft.com/dotnet/api/system.object.referenceequals), [object.GetHashCode\(\)](https://learn.microsoft.com/dotnet/api/system.object.gethashcode), [object.GetType\(\)](https://learn.microsoft.com/dotnet/api/system.object.gettype), [object.MemberwiseClone\(\)](https://learn.microsoft.com/dotnet/api/system.object.memberwiseclone) ## Methods ### GetKeyForItem\(EnvironmentSubjectStateEntry\) When implemented in a derived class, extracts the key from the specified element. ```csharp protected override string GetKeyForItem(EnvironmentSubjectStateEntry item) ``` #### Parameters `item` [EnvironmentSubjectStateEntry](Aeon.Environment.EnvironmentSubjectStateEntry.md) The element from which to extract the key. #### Returns [string](https://learn.microsoft.com/dotnet/api/system.string) The key for the specified element.