BinaryMessageFormatter.TypeFormat 属性

定义

获取或设置一个值,该值定义类型说明在序列化流中的布局方式。

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

属性值

定义类型说明格式的枚举值之一。

属性

注解

重要

使用不受信任的数据调用此类中的方法存在安全风险。 仅使用受信任的数据调用此类中的方法。 有关详细信息,请参阅 验证所有输入

目前,应接受默认值 TypesWhenNeeded

适用于

另请参阅