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.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.

[Visual Basic]
Overridable Protected Sub WriteValue( _
   ByVal type As Type, _
   ByVal value As Object, _
   ByVal writer As BinaryWriter, _
   ByVal objFormatter As IFormatter _
)
[C#]
protected virtual void WriteValue(
   Type type,
   object value,
   BinaryWriter writer,
   IFormatter objFormatter
);
[C++]
protected: virtual void WriteValue(
   Type* type,
   Object* value,
   BinaryWriter* writer,
   IFormatter* objFormatter
);
[JScript]
protected function WriteValue(
   type : Type,
   value : Object,
   writer : BinaryWriter,
   objFormatter : IFormatter
);

Parameters

type
The Type of the Object to be written to the specified stream.
value
The Object to be written.
writer
TBD.
objFormatter
A IFormatter object.

See Also

ResourceWriter Class | ResourceWriter Members | System.Resources Namespace