次の方法で共有


FSharpValue.PreComputeUnionConstructorInfo メソッド (F#)

指定されたケースのオブジェクトを構築するメソッド。

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

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

// Signature:
static member PreComputeUnionConstructorInfo : UnionCaseInfo * ?BindingFlags -> MethodInfo
static member PreComputeUnionConstructorInfo : UnionCaseInfo * ?bool -> MethodInfo

// Usage:
FSharpValue.PreComputeUnionConstructorInfo (unionCase)
FSharpValue.PreComputeUnionConstructorInfo (unionCase, bindingFlags = bindingFlags)

open FSharpReflectionExtensions;
FSharpValue.PreComputeUnionConstructorInfo (unionCase, allowAccessToPrivateRepresentation = false)

パラメーター

  • unionCase
    型: UnionCaseInfo

    共用体ケースの記述。

  • bindingFlags
    型: BindingFlags

    省略可能な束縛フラグ。

  • allowAccessToPrivateRepresentation
    型: bool

    プライベート表現型のアクセシビリティを表すオプションのフラグ。

戻り値

MethodInfo オブジェクトとして指定された共用体ケースのコンストラクターの記述。

プラットフォーム

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

バージョン情報

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

2.0、4.0、Portable でサポート

参照

関連項目

Reflection.FSharpValue クラス (F#)

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