XmlMessageFormatter.Clone 方法

定義

建立 XmlMessageFormatter 類別的執行個體,其讀取/寫入屬性 (目標型別集) 與目前的 XmlMessageFormatter 執行個體相同。Creates an instance of the XmlMessageFormatter class whose read/write properties (the sets of target types) are the same as the current XmlMessageFormatter instance.

public:
 virtual System::Object ^ Clone();
public object Clone ();
abstract member Clone : unit -> obj
override this.Clone : unit -> obj
Public Function Clone () As Object

傳回

Object

物件,其屬性和這個 XmlMessageFormatter 執行個體的屬性相同,但是其中繼資料 (Metadata) 沒有指定它為格式子類別執行個體。An object whose properties are identical to those of this XmlMessageFormatter instance, but whose metadata does not specify it to be a formatter class instance.

實作

備註

這個方法會建立格式器的複本,並將其所有屬性初始化為這個物件的值 XmlMessageFormatterThis method creates a copy of the formatter and initializes all its properties to the values of this XmlMessageFormatter object.

適用於

另請參閱