System.Resources.ResXResourceSet Class

Represents all resources in an XML resource (.resx) file.

See Also: ResXResourceSet Members


public class ResXResourceSet : ResourceSet


The System.Resources.ResXResourceSet class enumerates over an System.Resources.IResourceReader, loads every name and value, and stores them in a hash table. You can then enumerate the resources in the System.Resources.ResXResourceSet object or retrieve individual resources by name.


This class contains a System.Security.Permissions.SecurityAction.LinkDemand and an System.Security.Permissions.SecurityAction.InheritanceDemand at the class level that applies to all members. A System.Security.SecurityException exception is thrown when the immediate caller or a derived class does not have full-trust permission. For more information about security demands, see Link Demands and Inheritance Demands.

A System.Resources.ResXResourceSet object provides a convenient way to read all the resources in a .resx file into memory. You can use the ResourceSet.GetObject(string) method to retrieve a particular resource when the .resx file has been read into a System.Resources.ResXResourceSet instance.


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