Quotations.Var 类 (F#)

表示变量的绑定站点上的信息。

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

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

[<Sealed>]
type Var =
 class
  interface IComparable
  new Var : string * Type * bool option -> Var
  static member Global : string * Type -> Var
  member this.IsMutable :  bool
  member this.Name :  string
  member this.Type :  Type
 end

备注

此类型在编译的程序集中名为 FSharpVar。 如果从 F# 以外的 .NET 语言中访问类型,或通过反射访问类型,请使用此名称。

构造函数

成员

说明

new

新建一个具有给定名称、类型和可变性的变量

实例成员

成员

说明

IsMutable

指示该变量是否表示一个可变的存储位置

名称

声明的变量名称

类型

与变量关联的类型。

静态成员

成员

说明

Global

从按名称和类型进行索引的共享变量的全局池中,获取或创建一个具有给定名称和类型的新变量。

平台

Windows 7、Windows Vista SP2、Windows XP SP3、Windows XP x64 SP2、Windows Server 2008 R2、Windows Server 2008 SP2、Windows Server 2003 SP2

版本信息

F# 运行时

受以下版本支持:2.0、4.0

Silverlight

受以下版本支持:3

请参见

参考

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