IResourceWriter::AddResource Method (String^, String^)

 

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

Namespace:   System.Resources
Assembly:  mscorlib (in mscorlib.dll)

void AddResource(
	String^ name,
	String^ value
)

Parameters

name
Type: System::String^

The name of the resource.

value
Type: System::String^

The value of the resource.

Exception Condition
ArgumentException

The name parameter is null.

The resource is not written until the Generate method is called.

.NET Framework
Available since 1.1
Return to top
Show: