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 实例的属性相同,但其元数据并不将此实例指定为格式化程序类实例。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.

适用于

另请参阅