System.Resources.ResXResourceSet Class

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

See Also: ResXResourceSet Members

Syntax

public class ResXResourceSet : ResourceSet

Remarks

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.

Note:

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.

Requirements

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