Core.AutoSerializableAttribute 类 (F#)

将值设置为 false 的此特性添加到某一类型后,会禁用 F# 默认情况下使该类型可序列化的行为。

命名空间/模块路径: Microsoft.FSharp.Core

程序集:FSharp.Core(在 FSharp.Core.dll 中)

[<AttributeUsage(AttributeTargets.Class, AllowMultiple = false)>]
[<Sealed>]
type AutoSerializableAttribute =
 class
  new AutoSerializableAttribute : bool -> AutoSerializableAttribute
  member this.Value :  bool
 end

备注

也可以使用名称的缩写形式 AutoSerializable

构造函数

成员

说明

new

创建特性的实例。

实例成员

成员

说明

特性的值,用来指示类型是否自动标记为可序列化。

平台

Windows 8,Windows 7,Windows server 2012中,Windows server 2008 R2

版本信息

F#核心库版本

支持:2.0,4.0,可移植

请参见

参考

Microsoft.FSharp.Core 命名空间 (F#)