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 Methods

The methods of the ResourceWriter class are listed below. For a complete list of ResourceWriter class members, see the ResourceWriter Members topic.

Public:

AddResource Overloaded. 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.
Close Closes the output stream.
Equals (inherited from Object) Determines whether the specified Object is the same instance as the current Object. Subclasses are expected to override this method to support value equality (not reference equality).
GetHashCode (inherited from Object) Serves as a hash function for a particular type, suitable for use in hashing algorithms and data structures like a hash table.
GetType (inherited from Object) Gets the Type of the Object.
ToString (inherited from Object) Returns a String that represents the current Object.
Write Writes all resources to the output stream in the system default format. If an exception occurs while writing the resources, the output stream is closed since the information written is most likely invalid.

Protected:

Finalize (inherited from Object) Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by the Garbage Collector (GC). This method may be ignored by the runtime; therefore, necessary cleanup operations should be done elsewhere.
MemberwiseClone (inherited from Object) Creates a shallow copy of the current Object.
WriteValue Writes the value of an object to the specified stream. In general, serializes the object using the specified object formatter. However, for certain types, writes a more compact form of the object. For instance, writes a compact form of Int32 value. The method recognizes most of the primitive types and certain value classes.

See Also

ResourceWriter Class | System.Resources Namespace