Edit

Share via


BinaryMessageFormatter.Clone Method

Definition

Creates an instance of the BinaryMessageFormatter class whose read/write properties (the root object and type description formats) are the same as the current BinaryMessageFormatter.

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

Returns

An object whose properties are identical to those of this BinaryMessageFormatter, but whose metadata does not specify it to be a formatter class instance.

Implements

Remarks

Important

Calling methods from this class with untrusted data is a security risk. Call the methods from this class only with trusted data. For more information, see Validate All Inputs.

This method creates a copy of the formatter and initializes all its properties to the values of this BinaryMessageFormatter. It is used for scalability, but does not guarantee read or write thread safety.

Applies to

See also