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!

ResourceWriter.AddResource

Adds a resource to the list of resources to be added to an output file or output stream. The resource is not written until Write is called. The resource added must be serializable.

Overload List

Adds a named resource specified as an object to the list of resources to be written. The resource is not written until Write is called.

[Visual Basic] Overloads Overridable Public Sub AddResource(String, Object)
[C#] public virtual void AddResource(String, Object);
[C++] public: virtual void AddResource(String*, Object);
[JScript] public function AddResource(String, Object);

Adds a named resource specified as a String to the list of resources to be written to a file. The resource is not written until Write is called.

[Visual Basic] Overloads Overridable Public Sub AddResource(String, String)
[C#] public virtual void AddResource(String, String);
[C++] public: virtual void AddResource(String*, String*);
[JScript] public function AddResource(String, String);

Adds a named resource specified as a byte array to the list of resources to be written. The resource is not written until Write is called.

[Visual Basic] Overloads Overridable Public Sub AddResource(String, Byte())
[C#] public virtual void AddResource(String, byte[]);
[C++] public: virtual void AddResource(String*, unsigned char[]);
[JScript] public function AddResource(String, Byte[]);

See Also

ResourceWriter Class | ResourceWriter Members | System.Resources Namespace