共用方式為


Quotations.Var 建構函式 (F#)

使用指定的名稱、 型別和變動,會建立新的變數。

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

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

// Signature:
new Var : string * Type * ?bool -> Var

// Usage:
new Var (name, typ)
new Var (name, typ, isMutable = isMutable)

參數

  • name
    型別:string

    變數的宣告名稱。

  • typ
    型別:Type

    與變數相關聯的型別。

  • isMutable
    型別:bool

    表示變數是否表示可變動儲存位置。 預設值是 false。

傳回值

已建立的變數。

平台

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

請參閱

參考

Quotations.Var 類別 (F#)

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