Formatter.WriteObjectRef(Object, String, Type) Method (System.Runtime.Serialization) (original) (raw)

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.

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

protected:
 abstract void WriteObjectRef(System::Object ^ obj, System::String ^ name, Type ^ memberType);
protected abstract void WriteObjectRef(object? obj, string name, Type memberType);
protected abstract void WriteObjectRef(object obj, string name, Type memberType);
abstract member WriteObjectRef : obj * string * Type -> unit
Protected MustOverride Sub WriteObjectRef (obj As Object, name As String, memberType As Type)

Parameters

obj

Object

The object reference to write.

name

String

The name of the member.

memberType

Type

The type of object the reference points to.

Remarks

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

Notes to Implementers

You must implement this method in a derived class.

Applies to