System.Resources.ResXResourceWriter.AddResource Method

Adds a named resource specified as an object to the list of resources to write.

Syntax

public void AddResource (string name, object value)

Parameters

name
The name of the resource.
value
The value of the resource.

Remarks

The resource is not written until ResXResourceWriter.Generate is called. The resource that was added must be serializable.

If the resource being added is a string, it is written as a string; otherwise, the resource is serialized and stored in a binary format.

Requirements

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