BinaryMessageFormatter Konstruktory

Definicja

Inicjuje nowe wystąpienie klasy BinaryMessageFormatter.

Przeciążenia

BinaryMessageFormatter()

Inicjuje BinaryMessageFormatter nowe wystąpienie klasy bez określania stylu typu lub najwyższego stylu zestawu obiektów.

BinaryMessageFormatter(FormatterAssemblyStyle, FormatterTypeStyle)

Inicjuje BinaryMessageFormatter nowe wystąpienie klasy, określając formaty obiektu głównego i opisy typów.

Uwagi

Ważne

Wywoływanie metod z tej klasy z niezaufanymi danymi jest zagrożeniem bezpieczeństwa. Wywołaj metody z tej klasy tylko z zaufanymi danymi. Aby uzyskać więcej informacji, zobacz Validate All Inputs (Weryfikowanie wszystkich danych wejściowych).

BinaryMessageFormatter()

Inicjuje BinaryMessageFormatter nowe wystąpienie klasy bez określania stylu typu lub najwyższego stylu zestawu obiektów.

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

Uwagi

Należy określić wartości właściwości TopObjectFormat (która definiuje sposób określania sposobu określania obiektu głównego w grafie) oraz TypeFormat właściwość (która definiuje sposób określania opisów typów obiektów) przed użyciem wystąpienia BinaryMessageFormatter klasy do serializacji i wysyłania komunikatu.

Dotyczy

BinaryMessageFormatter(FormatterAssemblyStyle, FormatterTypeStyle)

Inicjuje BinaryMessageFormatter nowe wystąpienie klasy, określając formaty obiektu głównego i opisy typów.

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)

Parametry

topObjectFormat
FormatterAssemblyStyle

Określa, w jaki sposób górny (główny) obiekt grafu jest ułożony w strumieniu serializowanym.

typeFormat
FormatterTypeStyle

Określa sposób określania opisów typów w strumieniu serializowanym.

Dotyczy