Share via


Costruttore Core.DefaultValueAttribute (F#)

Crea un'istanza dell'attributo.

Percorso spazio dei nomi/modulo: Microsoft.FSharp.Core

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

// Signatures:
new DefaultValueAttribute : bool -> DefaultValueAttribute
new DefaultValueAttribute : unit -> DefaultValueAttribute

// Usage:
new DefaultValueAttribute (check)
new DefaultValueAttribute ()

Parametri

  • check
    Tipo: bool

    Indica se dichiarare che il tipo di campo supporta null.

Valore restituito

Nuova istanza di DefaultValueAttribute.

Piattaforme

Windows 8, Windows 7, Windows Server 2012, Windows Server 2008 R2

Informazioni sulla versione

Versioni della libreria di base F#

Supportato in: 2,0, 4,0, portabile

Vedere anche

Riferimenti

Classe Core.DefaultValueAttribute (F#)

Spazio dei nomi Microsoft.FSharp.Core (F#)