https://learn.microsoft.com/en-us/dotnet/api/system.collections.specialized.nameobjectcollectionbase.basegetallkeys?view=net-10.0&viewFallbackFrom=windowsdesktop-10.0
NameObjectCollectionBase.BaseGetAllKeys Method (System.Collections.Specialized) | Microsoft Learn
Returns a String array that contains all the keys in the NameObjectCollectionBase instance.
methodsystemcollectionsspecializedmicrosoft