Bagikan melalui


Core.StructuredFormatDisplayAttribute Class (F#)

This attribute is used to mark how a type is displayed by default when using %A printf formatting patterns and other two-dimensional text-based display layouts. In this version of F# the only valid values are of the form PreText {PropertyName} PostText. The property name indicates a property to evaluate and to display instead of the object itself.

Namespace/Module Path: Microsoft.FSharp.Core

Assembly: FSharp.Core (in FSharp.Core.dll)

[<AttributeUsage(5148, AllowMultiple = false)>]
[<Sealed>]
type StructuredFormatDisplayAttribute =
 class
  new StructuredFormatDisplayAttribute : string -> StructuredFormatDisplayAttribute
  member this.Value :  string
 end

Remarks

You can also use the short form of the name, StructuredFormatDisplay.

Constructors

Member

Description

new

Creates an instance of the attribute

Instance Members

Member

Description

Value

Indicates the text to display by default when objects of this type are displayed using %A printf formatting patterns and other two-dimensional text-based display layouts.

Platforms

Windows 7, Windows Vista SP2, Windows XP SP3, Windows XP x64 SP2, Windows Server 2008 R2, Windows Server 2008 SP2, Windows Server 2003 SP2

Version Information

F# Runtime

Supported in: 2.0, 4.0

Silverlight

Supported in: 3

See Also

Reference

Microsoft.FSharp.Core Namespace (F#)