This documentation is archived and is not being maintained.

Formatter.WriteObjectRef Method

When overridden in a derived class, writes an object reference to the stream already attached to the formatter.

The Formatter type is not CLS-compliant. For more information about CLS compliance, see What is the Common Language Specification.

[Visual Basic]
Protected MustOverride Sub WriteObjectRef( _
   ByVal obj As Object, _
   ByVal name As String, _
   ByVal memberType As Type _
protected abstract void WriteObjectRef(
 object obj,
 string name,
 Type memberType
protected: virtual void WriteObjectRef(
 Object* obj,
 String* name,
 Type* memberType
) = 0;
protected abstract function WriteObjectRef(
   obj : Object,
 name : String,
 memberType : Type


The object reference to write.
The name of the member.
The type of object the reference points to.


Schedules the object with the graph walker to handle the work.

Notes to Inheritors:  You must implement this method in a derived class.


Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also

Formatter Class | Formatter Members | System.Runtime.Serialization Namespace