BinaryMessageFormatter Construtores
Definição
Inicializa uma nova instância da classe BinaryMessageFormatter.Initializes a new instance of the BinaryMessageFormatter class.
Sobrecargas
| BinaryMessageFormatter() |
Inicializa uma nova instância da classe BinaryMessageFormatter sem especificar um estilo de tipo ou estilo de assembly de objeto superior.Initializes a new instance of the BinaryMessageFormatter class without specifying a type style or top object assembly style. |
| BinaryMessageFormatter(FormatterAssemblyStyle, FormatterTypeStyle) |
Inicializa uma nova instância da classe BinaryMessageFormatter, especificando os formatos do objeto raiz e as descrições de tipo.Initializes a new instance of the BinaryMessageFormatter class, specifying the formats of the root object and the type descriptions. |
Comentários
Importante
Chamar métodos desta classe quando você tiver dados não confiáveis é um risco à segurança.Calling methods from this class with untrusted data is a security risk. Chame os métodos dessa classe somente quando você tiver dados confiáveis.Call the methods from this class only with trusted data. Para obter mais informações, confira Validação de dados.For more information, see Data Validation.
BinaryMessageFormatter()
Inicializa uma nova instância da classe BinaryMessageFormatter sem especificar um estilo de tipo ou estilo de assembly de objeto superior.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 ()
Comentários
Você deve especificar valores para a TopObjectFormat Propriedade (que define como o objeto raiz em um grafo é apresentado) e a TypeFormat Propriedade (que define como as descrições de tipo de objeto são dispostas) antes de usar uma instância da BinaryMessageFormatter classe para serializar e enviar uma mensagem.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.
Aplica-se a
BinaryMessageFormatter(FormatterAssemblyStyle, FormatterTypeStyle)
Inicializa uma nova instância da classe BinaryMessageFormatter, especificando os formatos do objeto raiz e as descrições de tipo.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)
Parâmetros
- topObjectFormat
- FormatterAssemblyStyle
Determina a forma como o objeto superior (raiz) de um gráfico é disposto no fluxo serializado.Determines how the top (root) object of a graph is laid out in the serialized stream.
- typeFormat
- FormatterTypeStyle
Determina a forma como as descrições de tipo são dispostas no fluxo serializado.Determines how type descriptions are laid out in the serialized stream.