次の方法で共有


Formatter.WriteObjectRef メソッド

派生クラスでオーバーライドされると、フォーマッタに既に結び付けられているストリームにオブジェクト参照を書き込みます。

Formatter 型は CLS との互換性がありません。CLS との互換性に関する詳細については 「共通言語仕様の概要」 を参照してください。

Protected MustOverride Sub WriteObjectRef( _
   ByVal obj As Object, _   ByVal name As String, _   ByVal memberType As Type _)
[C#]
protected abstract void WriteObjectRef(objectobj,stringname,TypememberType);
[C++]
protected: virtual void WriteObjectRef(Object* obj,String* name,Type* memberType) = 0;
[JScript]
protected abstract function WriteObjectRef(
   obj : Object,name : String,memberType : Type);

パラメータ

  • obj
    書き込むオブジェクト参照。
  • name
    メンバの名前。
  • memberType
    参照が指すオブジェクトの型。

解説

作業を処理するグラフ ウォーカを使用して、オブジェクトをスケジュールします。

継承時の注意: 派生クラスでこのメソッドを実装する必要があります。

必要条件

プラットフォーム: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 ファミリ

参照

Formatter クラス | Formatter メンバ | System.Runtime.Serialization 名前空間