XmlMessageFormatter.Clone Method

Definition

Creates an instance of the XmlMessageFormatter class whose read/write properties (the sets of target types) are the same as the current XmlMessageFormatter instance.

C#
public object Clone();

Returns

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.

Implements

Remarks

This method creates a copy of the formatter and initializes all its properties to the values of this XmlMessageFormatter object.

Applies to

Product Versions
.NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

See also