System.Resources.ResXDataNode Class

Represents an element in an XML resource (.resx) file.

See Also: ResXDataNode Members


public sealed class ResXDataNode : System.Runtime.Serialization.ISerializable


The System.Resources.ResXDataNode class supports the representation of rich data types within a resource file. It can support the storage of any object in a resource file, so long as the object supports serialization and type editors.

You can create a System.Resources.ResXDataNode object by calling one of its overloaded class constructors. You can then add the resource item or element to a resource file by calling the ResXResourceWriter.AddResource(ResXDataNode) method.

To retrieve an existing System.Resources.ResXDataNode object, you must enumerate the System.Resources.ResXDataNode objects in an XML resource file by instantiating a System.Resources.ResXResourceReader object, setting the ResXResourceReader.UseResXDataNodes property to true, and calling the ResXResourceReader.GetEnumerator method to get an enumerator. The example provides an illustration.


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