次の方法で共有


XmlMessageFormatter.Clone メソッド

現在の XmlMessageFormatter インスタンスと同じ読み取り/書き込みプロパティ (対象の型のセット) の XmlMessageFormatter クラスのインスタンスを作成します。

Public Overridable Function Clone() As Object Implements _   ICloneable.Clone
[C#]
public virtual object Clone();
[C++]
public: virtual Object* Clone();
[JScript]
public function Clone() : Object;

戻り値

この XmlMessageFormatter インスタンスのプロパティと同一のプロパティだが、メタデータでフォーマッタ クラス インスタンスであることが指定されていないオブジェクト。

実装

ICloneable.Clone

解説

このメソッドは、フォーマッタのコピーを作成し、すべてのプロパティをこの XmlMessageFormatter オブジェクトの値に初期化します。

必要条件

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

.NET Framework セキュリティ:

参照

XmlMessageFormatter クラス | XmlMessageFormatter メンバ | System.Messaging 名前空間 | IMessageFormatter