共用方式為


Core.StructuredFormatDisplayAttribute 類別 (F#)

使用 %A printf 格式模式和其他二維文字型顯示配置時,這個屬性 (Attribute) 用來標記型別的預設顯示方式。 在這一版的 F# 中,有效值的格式僅限於 PreText {PropertyName} PostText。 屬性 (Property) 名稱表示要評估及顯示的屬性,而非物件本身。

**命名空間/模組路徑:**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,可攜式執行檔 (PE)。

請參閱

參考

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