共用方式為


OperatorIntrinsics.GetStringSlice 函式 (F#)

取得從字串的切片。

命名空間/模組路徑: Microsoft.FSharp.Core.Operators.OperatorIntrinsics

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

// Signature:
GetStringSlice : string -> int option -> int option -> string

// Usage:
GetStringSlice source start finish

參數

  • source
    型別:string

    來源字串。

  • start
    型別: int選項

    配量之第一個字元的索引。

  • finish
    型別: int選項

    配量之最後一個字元的索引。

傳回值

所指定索引的子字串。

平台

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

請參閱

參考

Operators.OperatorIntrinsics 模組 (F#)

Core.Operators 模組 (F#)