ResXResourceReader::GetEnumerator Method ()

 

Returns an enumerator for the current ResXResourceReader object.

Namespace:   System.Resources
Assembly:  System.Windows.Forms (in System.Windows.Forms.dll)

public:
virtual IDictionaryEnumerator^ GetEnumerator() sealed

Return Value

Type: System.Collections::IDictionaryEnumerator^

An enumerator for the current ResourceReader object.

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.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 1.1
Return to top
Show: