BinaryMessageFormatter BinaryMessageFormatter BinaryMessageFormatter BinaryMessageFormatter Constructors

Definition

Overloads

BinaryMessageFormatter() BinaryMessageFormatter() BinaryMessageFormatter()

Initializes a new instance of the BinaryMessageFormatter class without specifying a type style or top object assembly style.

BinaryMessageFormatter(FormatterAssemblyStyle, FormatterTypeStyle) BinaryMessageFormatter(FormatterAssemblyStyle, FormatterTypeStyle) BinaryMessageFormatter(FormatterAssemblyStyle, FormatterTypeStyle) BinaryMessageFormatter(FormatterAssemblyStyle, FormatterTypeStyle)

Initializes a new instance of the BinaryMessageFormatter class, specifying the formats of the root object and the type descriptions.

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 Data Validation.

BinaryMessageFormatter() BinaryMessageFormatter() BinaryMessageFormatter()

Initializes a new instance of the BinaryMessageFormatter class without specifying a type style or top object assembly style.

public:
 BinaryMessageFormatter();
public BinaryMessageFormatter ();
Public Sub New ()

Remarks

You must specify values for the TopObjectFormat property (which defines how the root object in a graph is laid out) and the TypeFormat property (which defines how object type descriptions are laid out) before using an instance of the BinaryMessageFormatter class to serialize and send a message.

BinaryMessageFormatter(FormatterAssemblyStyle, FormatterTypeStyle) BinaryMessageFormatter(FormatterAssemblyStyle, FormatterTypeStyle) BinaryMessageFormatter(FormatterAssemblyStyle, FormatterTypeStyle) BinaryMessageFormatter(FormatterAssemblyStyle, FormatterTypeStyle)

Initializes a new instance of the BinaryMessageFormatter class, specifying the formats of the root object and the type descriptions.

public:
 BinaryMessageFormatter(System::Runtime::Serialization::Formatters::FormatterAssemblyStyle topObjectFormat, System::Runtime::Serialization::Formatters::FormatterTypeStyle typeFormat);
public BinaryMessageFormatter (System.Runtime.Serialization.Formatters.FormatterAssemblyStyle topObjectFormat, System.Runtime.Serialization.Formatters.FormatterTypeStyle typeFormat);
new System.Messaging.BinaryMessageFormatter : System.Runtime.Serialization.Formatters.FormatterAssemblyStyle * System.Runtime.Serialization.Formatters.FormatterTypeStyle -> System.Messaging.BinaryMessageFormatter
Public Sub New (topObjectFormat As FormatterAssemblyStyle, typeFormat As FormatterTypeStyle)

Parameters

topObjectFormat
FormatterAssemblyStyle FormatterAssemblyStyle FormatterAssemblyStyle FormatterAssemblyStyle

Determines how the top (root) object of a graph is laid out in the serialized stream.

typeFormat
FormatterTypeStyle FormatterTypeStyle FormatterTypeStyle FormatterTypeStyle

Determines how type descriptions are laid out in the serialized stream.

Applies to