Core.CompilationMappingAttribute 类 (F#)

此属性由 F# 编译器自动插入,以将所生成通用语言基础结构 (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# 源代码,指示实体在元素的线性序列中的变体号(如果有)。

平台

Windows 8,Windows 7,Windows server 2012中,Windows server 2008 R2

版本信息

F#核心库版本

支持:2.0,4.0,可移植

请参见

参考

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