ResXResourceSet Class
Gathers all items that represent an XML resource (.resx) file into a single object.
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
The ResXResourceSet type exposes the following members.
| Name | Description | |
|---|---|---|
![]() | ResXResourceSet(Stream) | Initializes a new instance of the ResXResourceSet class using the system default ResXResourceReader to read resources from the specified stream. |
![]() | ResXResourceSet(String) | Initializes a new instance of a ResXResourceSet class using the system default ResXResourceReader that opens and reads resources from the specified file. |
| Name | Description | |
|---|---|---|
![]() | Close | Closes and releases any resources used by this ResourceSet. (Inherited from ResourceSet.) |
![]() | Dispose() | Disposes of the resources (other than memory) used by the current instance of ResourceSet. (Inherited from ResourceSet.) |
![]() | Dispose(Boolean) | Releases resources (other than memory) associated with the current instance, closing internal managed objects if requested. (Inherited from ResourceSet.) |
![]() | Equals(Object) | Determines whether the specified Object is equal to the current Object. (Inherited from Object.) |
![]() | Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) |
![]() | GetDefaultReader | Returns the preferred resource reader class for this kind of ResXResourceSet. (Overrides ResourceSet::GetDefaultReader().) |
![]() | GetDefaultWriter | Returns the preferred resource writer class for this kind of ResXResourceSet. (Overrides ResourceSet::GetDefaultWriter().) |
![]() | GetEnumerator | Returns an IDictionaryEnumerator that can iterate through the ResourceSet. (Inherited from ResourceSet.) |
![]() | GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) |
![]() | GetObject(String) | Searches for a resource object with the specified name. (Inherited from ResourceSet.) |
![]() | GetObject(String, Boolean) | Searches for a resource object with the specified name in a case-insensitive manner, if requested. (Inherited from ResourceSet.) |
![]() | GetString(String) | Searches for a String resource with the specified name. (Inherited from ResourceSet.) |
![]() | GetString(String, Boolean) | Searches for a String resource with the specified name in a case-insensitive manner, if requested. (Inherited from ResourceSet.) |
![]() | GetType | Gets the Type of the current instance. (Inherited from Object.) |
![]() | MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) |
![]() | ReadResources | Reads all the resources and stores them in a Hashtable indicated in the Table property. (Inherited from ResourceSet.) |
![]() | ToString | Returns a string that represents the current object. (Inherited from Object.) |
| Name | Description | |
|---|---|---|
![]() | Reader | Indicates the IResourceReader used to read the resources. (Inherited from ResourceSet.) |
![]() | Table | The Hashtable in which the resources are stored. (Inherited from ResourceSet.) |
| Name | Description | |
|---|---|---|
![]() ![]() | IEnumerable::GetEnumerator | Returns an IEnumerator object to avoid a race condition with Dispose. This member is not intended to be used directly from your code. (Inherited from ResourceSet.) |
The ResXResourceSet class enumerates over an IResourceReader, loading every name and value, and storing them in a hash table.
A ResXResourceSet provides a convenient way to read all the resources in a .resx file into memory. You can use the GetObject method to retrieve a particular resource once the .resx file has been read into a ResXResourceSet.
For more information on the format of a .resx file, see Resources in .resx File Format.
Notes to InheritorsDerived classes of ResXResourceSet using their own resource reader and writer should override GetDefaultReader and GetDefaultWriter to provide the appropriate functionality for interpreting the ResXResourceSet.
- NamedPermissionSet
Security Action: LinkDemand
Associated Value: FullTrust, Topic: Named Permission Sets
- NamedPermissionSet
Security Action: InheritanceDemand
Associated Value: FullTrust, Topic: Named Permission Sets
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
