Core.StructuredFormatDisplayAttribute 类 (F#)

此特性用于标记在使用 %A printf 格式设置模式和其他基于文本的二维显示布局时,默认情况下如何显示类型。 在此版本的 F# 中,唯一有效的值的格式为 PreText {PropertyName} PostText。 属性名称指示要计算和显示的属性,而非对象本身。

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

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

[<AttributeUsage(AttributeTargets.Class ||| AttributeTargets.Interface ||| AttributeTargets.Struct ||| AttributeTargets.Delegate ||| AttributeTargets.Enum, AllowMultiple = false)>]
[<Sealed>]
type StructuredFormatDisplayAttribute =
 class
  new StructuredFormatDisplayAttribute : string -> StructuredFormatDisplayAttribute
  member this.Value :  string
 end

备注

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

构造函数

成员

说明

new

创建特性的实例

实例成员

成员

说明

指示在使用 %A printf 格式设置模式和其他基于文本的二维显示布局显示此类型的对象时,默认情况下将显示的文本。

平台

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

版本信息

F#核心库版本

支持:2.0,4.0,可移植

请参见

参考

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