System.Resources.ResourceWriter.AddResource Method

Adds a string resource to the list of resources to be written.

Syntax

public void AddResource (string name, string value)

Parameters

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

Remarks

The resource is not written until ResourceWriter.Generate is called.

You can retrieve the resources written by the ResourceWriter.AddResource(string, string) method by calling the ResourceManager.GetString(string) method.

Requirements

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