共用方式為


Core.Ref<'T> 資料錄 (F#)

可變動參考型別。 使用此運算子 :=和 !取得並設定值的 此型別。

命名空間/模組路徑: 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 # 以外,或透過反映存取類型使用這個名稱。

欄位

欄位

說明

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

請參閱

參考

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