Formatter.WriteMember(String, Object) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Inspects the type of data received, and calls the appropriate Write
method to perform the write to the stream already attached to the formatter.
protected:
virtual void WriteMember(System::String ^ memberName, System::Object ^ data);
protected virtual void WriteMember (string memberName, object? data);
protected virtual void WriteMember (string memberName, object data);
abstract member WriteMember : string * obj -> unit
override this.WriteMember : string * obj -> unit
Protected Overridable Sub WriteMember (memberName As String, data As Object)
Parameters
- memberName
- String
The name of the member to serialize.
- data
- Object
The object to write to the stream attached to the formatter.
Remarks
To use this method properly, all the Write
methods (WriteArray method, WriteBoolean method, WriteByte method, and so on) should have the appropriate functionality.