ResXResourceWriter::AddResource Method (String^, String^)
.NET Framework (current version)
Adds a string resource to the resources.
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Parameters
- name
-
Type:
System::String^
The name of the resource.
- value
-
Type:
System::String^
The value of the resource.
The following example creates a .resx file named CarResources.resx that stores six strings, an icon, and two application-defined objects (two Automobile objects). To store the strings, it calls the AddResource(String^, String^) method.
.NET Framework
Available since 1.1
Available since 1.1
Show:
Note that the Automobile class, which is defined and instantiated in the example, is tagged with the SerializableAttribute attribute.