BinaryMessageFormatter.TypeFormat 属性

定义

获取或设置一个值,该值定义类型说明在序列化流中的布局方式。Gets or sets a value that defines how type descriptions are laid out in the serialized stream.

public:
 property System::Runtime::Serialization::Formatters::FormatterTypeStyle TypeFormat { System::Runtime::Serialization::Formatters::FormatterTypeStyle get(); void set(System::Runtime::Serialization::Formatters::FormatterTypeStyle value); };
[System.Messaging.MessagingDescription("MsgTypeFormat")]
public System.Runtime.Serialization.Formatters.FormatterTypeStyle TypeFormat { get; set; }
[<System.Messaging.MessagingDescription("MsgTypeFormat")>]
member this.TypeFormat : System.Runtime.Serialization.Formatters.FormatterTypeStyle with get, set
Public Property TypeFormat As FormatterTypeStyle

属性值

FormatterTypeStyle

定义类型说明格式的枚举值之一。One of the enumeration values that defines the type description format.

属性

注解

重要

使用不受信任的数据调用此类中的方法存在安全风险。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.

目前,应接受默认值 TypesWhenNeededCurrently, you should accept the default value, TypesWhenNeeded.

适用于

另请参阅