ResXResourceReader::GetEnumerator Method ()
.NET Framework (current version)
Returns an enumerator for the current ResXResourceReader object.
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Return Value
Type: System.Collections::IDictionaryEnumerator^An enumerator for the current ResourceReader object.
Implements
IResourceReader::GetEnumerator()The GetEnumerator method retrieves the name/value pairs in the XML resource (.resx) stream or string associated with the current ResXResourceReader object. However, if the UseResXDataNodes property is set to true before you call GetEnumerator, the resource items are retrieved as ResXDataNode objects. In this case, all resource nodes are returned regardless of type.
The following example uses the GetEnumerator method to obtain an IDictionaryEnumerator object that is used to enumerate the resources in a .resx file. The example includes a CreateResourceFile routine that creates the necessary resource file.
.NET Framework
Available since 1.1
Available since 1.1
Show: