共用方式為


Core.CompilationMappingAttribute 類別 (F#)

F# 編譯器會在產生的 Common Language Infrastructure (CLI) 程式碼中自動插入這個屬性來標記型別和方法,以用旗標表示與原始來源建構之間的對應關係。 Microsoft.FSharp.Reflection 命名空間中的函式會使用這個屬性,將編譯的建構反轉對應至其原始形式。 不是要讓您在使用者程式碼中使用。

命名空間/模組路徑:Microsoft.FSharp.Core

組件:FSharp.Core (在 FSharp.Core.dll 中)

[<AttributeUsage(AttributeTargets.All, AllowMultiple = false)>]
[<Sealed>]
type CompilationMappingAttribute =
 class
  new CompilationMappingAttribute : SourceConstructFlags * int * int -> CompilationMappingAttribute
  new CompilationMappingAttribute : SourceConstructFlags * int -> CompilationMappingAttribute
  new CompilationMappingAttribute : SourceConstructFlags -> CompilationMappingAttribute
  member this.SequenceNumber :  int
  member this.SourceConstructFlags :  SourceConstructFlags
  member this.VariantNumber :  int
 end

備註

您也可以使用名稱的簡短形式 CompilationMapping

建構函式

成員

描述

new

建立屬性的執行個體。

執行個體成員

成員

描述

SequenceNumber

表示具有 F# 原始程式碼之線性項目序列中的實體序號 (如果有的話)。

SourceConstructFlags

表示已編譯實體與 F# 原始程式碼之間的關聯性。

VariantNumber

表示具有 F# 原始程式碼之線性項目序列中的實體 Variant 號碼 (如果有的話)。

平台

Windows 8 中, Windows 7, Windows Server 2012 上, Windows Server 2008 R2

版本資訊

F# 核心程式庫版本

支援版本:2.0, 4.0,可攜式執行檔 (PE)。

請參閱

參考

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