Core.StructuredFormatDisplayAttribute クラス (F#)

この属性は、%Aprintf 書式設定やその他の 2 次元のテキスト ベースの表示レイアウトを使用する場合に、型を表示する既定の方法を指定するために使用されます。このバージョンの 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

属性のインスタンスを作成します。

インスタンス メンバー

メンバー

説明

この型のオブジェクトが %Aprintf 書式設定パターンやその他の 2 次元のテキスト ベースの表示レイアウトを使用して表示される場合に、既定で表示するテキストを示します。

プラットフォーム

Windows 8、Windows 7、Windows Server 2012 で Windows Server 2008 R2

バージョン情報

F# コア ライブラリのバージョン

サポート: ポータブル 2.0、4.0

参照

関連項目

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