可变引用的类型。 使用运算符 := 和 ! 获取和设置此类型的值。
命名空间/模块路径: Microsoft.FSharp.Core
程序集:FSharp.Core(在 FSharp.Core.dll 中)
[<StructuralEquality>]
[<StructuralComparison>]
type Ref<'T> =
 { mutable contents : 'T }
 with
  interface IStructuralEquatable
  interface IComparable
  interface IComparable
  interface IStructuralComparable
  member this.Value :  'T with get, set
 end
备注
有关引用单元格的概述,请参见引用单元格 (F#)。
此类型在编译的程序集中名为 FSharpRef。 如果从 F# 以外的 .NET 语言中访问类型,或通过反射访问类型,请使用此名称。
字段
| 字段 | 说明 | 
|---|---|
| contents | 类型:'T 引用单元格的当前值。 | 
实例成员
| 成员 | 说明 | 
|---|---|
| 引用单元格的当前值 | 
平台
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