System.Windows.Forms 1.0.5000.0 2.0.0.0 System.Object System.Resources.IResourceReader The class provides a default implementation of the interface that reads resource information in an XML format. To read resource information from a binary resource format, use the class. You use the class to enumerate resources in .resx files by traversing the dictionary enumerator () that is returned by the method. You call the methods provided by to advance to the next resource and to read the name and value of each resource in the .resx file. The class provides two enumerators. The method returns an object; we recommend that you use this method to enumerate resources. The method is an explicit interface implementation that returns an object; we do not recommend its use. The following example uses the method to obtain an object that is used to enumerate the resources in a .resx file. The example includes a CreateResourceFile routine that creates the necessary resource file. code reference: System.Resources.ResXResourceReader.Class#1 If the property is true, the value of the property is a object rather than the resource value. This makes a resource item's comment available from the property. The following example sets the property to true and enumerates the resources in a .resx file, code reference: System.Resources.ResXResourceReader.Class#2 If is true, the items in the enumeration can be either: Named resources along with their data. In this case, the property is null. Named resources along with the name of the file that contains the resource data. In this case, the property returns a object that provides information about the resource, including its filename. If relative file names are used, you should always set the property to provide a reference point for the relative file path. If you want to retrieve named resources from a .resx file rather than enumerating its resources, you can instantiate a object and call its GetString and GetObject methods. The class contains a link demand and an inheritance demand at the class level that applies to all members. A exception is thrown when either the immediate caller or the derived class does not have full-trust permission. For more information about security demands, see Link Demands and Inheritance Demands. Enumerates XML resource (.resx) files and streams, and reads the sequential resource name and value pairs. Constructor The and methods do not close the stream you specify in this constructor. Initializes a new instance of the class for the specified stream. An input stream that contains resources. 1.0.5000.0 2.0.0.0 Constructor To be added. Initializes a new instance of the class for the specified . A text input stream that contains resources. 1.0.5000.0 2.0.0.0 Constructor To be added. Initializes a new instance of the class for the specified resource file. The path of the resource file to read. 1.0.5000.0 2.0.0.0 Constructor To be added. Initializes a new instance of the class using an input stream and a type resolution service. An input stream that contains resources. An object that resolves type names specified in a resource. 1.0.5000.0 2.0.0.0 Constructor 2.0.0.0 To be added. Initializes a new instance of the class using a stream and an array of assembly names. An input stream that contains resources. An array of objects that specifies one or more assemblies. The assemblies are used to resolve a type name in the resource to an actual type. Constructor To be added. Initializes a new instance of the class using a text stream reader and a type resolution service. A text stream reader that contains resources. An object that resolves type names specified in a resource. 1.0.5000.0 2.0.0.0 Constructor 2.0.0.0 To be added. Initializes a new instance of the class using a object and an array of assembly names. An object used to read resources from a stream of text. An array of objects that specifies one or more assemblies. The assemblies are used to resolve a type name in the resource to an actual type. Constructor To be added. Initializes a new instance of the class using a file name and a type resolution service. The name of an XML resource file that contains resources. An object that resolves type names specified in a resource. 1.0.5000.0 2.0.0.0 Constructor 2.0.0.0 To be added. Initializes a new instance of the class using an XML resource file name and an array of assembly names. The name of an XML resource file that contains resources. An array of objects that specifies one or more assemblies. The assemblies are used to resolve a type name in the resource to an actual type. Property 2.0.0.0 System.String To be added. The property is used to resolve relative file path references that are assigned to the property of objects. By default, its value is , and relative file path references are resolved in relationship to the current directory returned by the property. You should set this property before you begin enumerating resources. Gets or sets the base path for the relative file path specified in a object. Method System.Void Calling enables the resources used by the to be reallocated for other purposes. For more information about , see [<topic://cpconCleaningUpUnmanagedResources>]. Releases all resources used by the . 1.0.5000.0 2.0.0.0 Method System.Void This method can be called by either the method or the method. invokes this method with the parameter set to true. invokes this method with set to false. When the parameter is true, this method releases all resources held by any managed objects that this references. This method invokes the Dispose method of each referenced object. Releases the unmanaged resources used by the and optionally releases the managed resources. true to release both managed and unmanaged resources; false to release only unmanaged resources. 1.0.5000.0 2.0.0.0 Method System.Void To be added. This member overrides the method. 1.0.5000.0 2.0.0.0 Method System.Resources.ResXResourceReader To be added. Creates a new object and initializes it to read a string whose contents are in the form of an XML resource file. An object that reads resources from the string. A string containing XML resource-formatted information. 1.0.5000.0 2.0.0.0 Method System.Resources.ResXResourceReader To be added. Creates a new object and initializes it to read a string whose contents are in the form of an XML resource file, and to use an object to resolve type names specified in a resource. An object that reads resources from the string. A string containing XML resource-formatted information. An object that resolves type names specified in a resource. 1.0.5000.0 2.0.0.0 Method 2.0.0.0 System.Resources.ResXResourceReader To be added. Creates a new object and initializes it to read a string whose contents are in the form of an XML resource file, and to use an array of objects to resolve type names specified in a resource. An object that reads resources from the string. A string whose contents are in the form of an XML resource file. An array of objects that specifies one or more assemblies. The assemblies are used to resolve a type name in the resource to an actual type. Method System.Collections.IDictionaryEnumerator The method retrieves the name/value pairs in the XML resource (.resx) stream or string associated with the current object. However, if the property is set to true before you call , the resource items are retrieved as objects. In this case, all resource nodes are returned regardless of type. Returns an enumerator for the current object. An enumerator for the current object. 1.0.5000.0 2.0.0.0 Method 2.0.0.0 System.Collections.IDictionaryEnumerator Resources are stored as name/value pairs in a resource file or stream. Design-time properties, which are called metadata, are stored in the resource file or stream along with runtime data resources. The method provides an object that can retrieve the metadata from the resource file or stream associated with the current object. However, if the property is set to true before you call , no resource nodes are retrieved. Provides a dictionary enumerator that can retrieve the design-time properties from the current XML resource file or stream. An enumerator for the metadata in a resource. Method 1.0.5000.0 2.0.0.0 System.Collections.IEnumerator This member is an explicit interface member implementation. It can be used only when the instance is cast to an interface. To enumerate the resources in a .resx file, we recommend that you call the method, and then call the MoveNext method on the returned object. Returns an enumerator for the current object. For a description of this member, see the method. An enumerator that can iterate through the name/value pairs in the XML resource (.resx) stream or string associated with the current object. Method 1.0.5000.0 2.0.0.0 System.Void This member is an explicit interface member implementation. It can be used only when the instance is cast to an interface. Releases the unmanaged resources used by the and optionally releases the managed resources. For a description of this member, see the method. Property 2.0.0.0 System.Boolean To be added. You can set the property before you begin enumerating resources. By default, its value is false. Gets or sets a value that indicates whether objects are returned when reading the current XML resource file or stream.