ITypeProvider.ApplyStaticArguments 方法 (F#)

向接受静态参数的提供类型应用静态参数。

命名空间/模块路径:Microsoft.FSharp.Core.CompilerServices

程序集:FSharp.Core(在 FSharp.Core.dll 中)

// Signature: abstract this.ApplyStaticArguments : Type * string [] * obj [] -> Type  // Usage: iTypeProvider.ApplyStaticArguments (typeWithoutArguments, typeNameWithArguments, staticArguments)

参数

  • typeWithoutArguments
    类型:Type

    希望向其应用静态参数的类型。

  • typeNameWithArguments
    类型:string []

    包括静态参数后类型的重整名称。 重整名称从基类型名称派生,增加了撇号 (`) 和指示静态参数数目的数字。

  • staticArguments
    类型:obj []

    静态参数,按名称编入索引。

返回值

应用了静态参数的结果类型。

备注

提供程序必须返回具有给定重整名称的类型。

平台

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

版本信息

F# 核心库版本

支持版本:4.0 支持版本:4.0,可移植

请参见

参考

CompilerServices.ITypeProvider 接口 (F#)

Microsoft.FSharp.Core.CompilerServices 命名空间 (F#)