列印到透過內部的字串緩衝區的字串,並傳回結果做為字串。 協助者列印程式 (Helper Printer) 必須傳回字串。
命名空間/模組路徑: Microsoft.FSharp.Core.Printf
組件:FSharp.Core (在 FSharp.Core.dll 中)
// Signature:
sprintf : StringFormat<'T> -> 'T
// Usage:
sprintf format
參數
format
型別:StringFormat<'T>輸入格式子。
傳回值
格式化字串。
備註
這個函式是名為 PrintFormatToStringThen中 已編譯的組件。 如果從一個語言,F # 以外,或透過反映存取成員使用這個名稱。
平台
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