NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

IResourceWriter.AddResource (String, Object)

Adds a named resource of type Object to the list of resources to be written. The resource is not written until Write is called.

[Visual Basic]
Overloads Sub AddResource( _
   ByVal name As String, _
   ByVal value As Object _
)
[C#]
void AddResource(
   string name,
   object value
);
[C++]
void AddResource(
   String* name,
   Object* value
) = 0;
[JScript]
function AddResource(
   name : String,
   value : Object
);

Parameters

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

Exceptions

Exception Type Condition
ArgumentNullException if either of the parameters is a null reference (in Visual Basic Nothing)

See Also

IResourceWriter Interface | IResourceWriter Members | System.Resources Namespace | IResourceWriter.AddResource Overload List