CompilerServices.ITypeProvider 接口 (F#)

类型提供程序实现此接口以便由编译器识别为 F# 类型提供程序。 此接口的实现确定类型提供程序的公共接口和行为。 有关详细信息,请参阅类型提供程序

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

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

type ITypeProvider =  interface   inherit IDisposable   abstract this.ApplyStaticArguments : Type * string [] * obj [] -> Type   abstract this.GetGeneratedAssemblyContents : System.Reflection.Assembly -> byte[]    abstract this.GetInvokerExpression : MethodBase * Quotations.Expr [] -> Quotations.Expr   abstract this.GetNamespaces : unit -> IProvidedNamespace []   abstract this.GetStaticParameters : Type -> ParameterInfo []   abstract this.add_Invalidate : EventHandler -> unit   abstract this.Invalidate : IEvent<EventHandler,EventArgs>   abstract this.remove_Invalidate : EventHandler -> unit  end

实例成员

成员

描述

add_InvalidateEventHandler -> unit

Invalidate 事件添加事件处理程序。

ApplyStaticArgumentsType * string [] * obj [] -> Type

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

GetInvokerExpressionMethodBase * Quotations.Expr [] -> Quotations.Expr

由编译器调用以要求表达式树替换给定的 MethodBase

GetGeneratedAssemblyContents:System.Reflection.Assembly -> byte []

获取给定逻辑提供程序集的物理内容。

GetNamespaces:unit -> IProvidedNamespace []

此类型提供程序将类型注入的命名空间名称。

GetStaticParametersType -> ParameterInfo []

获取提供类型的静态参数。

InvalidateIEvent<EventHandler, EventArgs>

在提供程序报告目前为止使解决方案无效的假设更改时触发。

remove_InvalidateEventHandler -> unit

Invalidate 事件删除事件处理程序。

平台

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

版本信息

F# 核心库版本

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

请参见

参考

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