共用方式為


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_Invalidate : EventHandler -> unit

加入 Invalidate 事件的事件處理常式。

ApplyStaticArguments : Type * string [] * obj [] -> Type

將靜態引數套用至接受靜態引數的提供類型。

GetInvokerExpression : MethodBase * Quotations.Expr [] -> Quotations.Expr

由編譯器所呼叫,要求運算式樹狀架構取代指定的 MethodBase 之內容。

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

取得指定的邏輯所提供之組件的實體內容。

GetNamespaces : unit -> IProvidedNamespace []

這個類別提供者將插入類型的命名空間名稱。

GetStaticParameters : Type -> ParameterInfo []

取得所提供之類型的靜態參數。

Invalidate : IEvent<EventHandler, EventArgs>

當提供者回報到目前為止讓解決方案失效的假設變更時,會觸發。

remove_Invalidate : EventHandler -> unit

移除 Invalidate 事件的事件處理常式。

平台

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

版本資訊

F# 核心程式庫版本

支援版本:4.0 支援版本:4.0、可攜式

請參閱

參考

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