IResourceWriter::AddResource Method (String^, Object^)
.NET Framework (current version)
Adds a named resource of type Object to the list of resources to be written.
Assembly: mscorlib (in mscorlib.dll)
Parameters
- name
-
Type:
System::String^
The name of the resource.
- value
-
Type:
System::Object^
The value of the resource.
| Exception | Condition |
|---|---|
| ArgumentNullException | The name parameter is null. |
The resource is not written until the 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. |
.NET Framework
Available since 1.1
Available since 1.1
Show:
