Note
The returned enumerator supports the IEnumerator.Reset method.
public IDictionaryEnumerator GetMetadataEnumerator()
Public Function GetMetadataEnumerator As IDictionaryEnumerator
public:
IDictionaryEnumerator^ GetMetadataEnumerator()
member GetMetadataEnumerator : unit -> IDictionaryEnumerator
If the SafeMode property is , the IDictionaryEnumerator.Value property of the returned enumerator is a ResXDataNode instance rather than the resource value. This makes possible to check the raw .resx content before deserialization if the .resx file is from an untrusted source. See also the example at ResXDataNode.
If AllowDuplicatedKeys property is , then this method returns a lazy enumerator for the first time meaning the .resx file is parsed only during the enumeration. When any of the enumerators are obtained for the second time, a cached enumerator is returned with the whole parsed .resx content. If duplicates are disabled, the lastly defined value will be returned of a redefined name.
See also the Remarks section of the ResXResourceReader class for examples.