Note
To be compatible with the System.Resources.ResXResourceReader
class set the value of this property to .
public bool AllowDuplicatedKeys { get; set; }
Public Property AllowDuplicatedKeys As Boolean
Get
Set
public:
property bool AllowDuplicatedKeys {
bool get ();
void set (bool value);
}
member AllowDuplicatedKeys : bool with get, set
If an element is defined more than once and AllowDuplicatedKeys is , then the enumeration returns every occurrence of the entries with identical names. If AllowDuplicatedKeys is the enumeration returns always the last occurrence of the entries with identical names.
If duplicated keys are allowed, the enumeration of the .resx file is lazy for the first time. A lazy enumeration means that the underlying .resx file is read only on demand. It is possible that not the whole .resx is read if enumeration is canceled. After the first enumeration elements are cached.
ObjectDisposedException | The Close or IDisposable.Dispose method has already been called on this ResXResourceReader instance. |
InvalidOperationException | In a set operation, a value cannot be specified because the XML resource file has already been accessed and is in use. |