次の方法で共有


Core.DefaultValueAttribute コンストラクター (F#)

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

名前空間/モジュール パス: Microsoft.FSharp.Core

アセンブリ: FSharp.Core (FSharp.Core.dll 内)

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

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

パラメーター

  • check
    型: bool

    フィールドの種類が null をサポートしていることをアサートするかどうかを示します。

戻り値

新しい DefaultValueAttribute インスタンス。

プラットフォーム

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

バージョン情報

F# ランタイム

サポート対象: 2.0、4.0

Silverlight

サポート: 3

参照

その他の技術情報

Core.DefaultValueAttribute クラス (F#)

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