System.Resources.IResourceWriter.AddResource Method

Adds a named resource of type object to the list of resources to be written.

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 the IResourceWriter.Generate method is called.

Note:

value might have to be serializable, so you might have to provide a type converter, depending on which resource writer is used.

Requirements

Namespace: System.Resources
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0, 4.0.0.0