Interactive.InteractiveSession 类 (F#)

当前正在执行的 F# Interactive 会话支持的操作。

命名空间/模块路径: Microsoft.FSharp.Compiler.Interactive

程序集: FSharp.Compiler.Interactive.Settings(在 FSharp.Compiler.Interactive.Settings.dll 中)

[<Sealed>]
type InteractiveSession =
 class
  member this.AddPrintTransformer : InteractiveSession -> ('T -> obj) -> unit
  member this.AddPrinter : InteractiveSession -> ('T -> string) -> unit
  member this.CommandLineArgs :  string []
  member this.EventLoop :  IEventLoop
  member this.FloatingPointFormat :  string
  member this.FormatProvider :  IFormatProvider
  member this.PrintDepth :  int
  member this.PrintLength :  int
  member this.PrintSize :  int
  member this.PrintWidth :  int
  member this.ShowDeclarationValues :  bool
  member this.ShowIEnumerable :  bool
  member this.ShowProperties :  bool
  member this.CommandLineArgs : string [] with set :  string []
  member this.EventLoop : IEventLoop with set :  IEventLoop
  member this.FloatingPointFormat : string with set :  string
  member this.FormatProvider : IFormatProvider with set :  IFormatProvider
  member this.PrintDepth : int with set :  int
  member this.PrintLength : int with set :  int
  member this.PrintSize : int with set :  int
  member this.PrintWidth : int with set :  int
  member this.ShowDeclarationValues : bool with set :  bool
  member this.ShowIEnumerable : bool with set :  bool
  member this.ShowProperties : bool with set :  bool
 end

实例成员

成员

说明

AddPrinter

注册用于控制交互式会话的输出的打印机。

AddPrintTransformer

注册用于控制交互式会话的输出的打印机转换器。

CommandLineArgs

忽略与交互式环境相关的参数并用最后一个脚本文件的名称(如果有)替换第一个参数后得到的命令行参数。

EventLoop

获取或设置当前正用于处理交互操作的事件循环。

FloatingPointFormat

获取或设置交互式会话的输出中所使用的浮点格式。

FormatProvider

获取或设置交互式会话的输出中所使用的格式提供程序。

PrintDepth

获取或设置交互式会话的打印深度。

PrintLength

获取或设置交互式会话的总打印长度。

PrintSize

获取或设置交互式会话的总打印大小。

PrintWidth

获取或设置交互式会话的打印宽度。

ShowDeclarationValues

若设置为 false,则禁止在交互式会话的输出中显示声明值。

ShowIEnumerable

若设置为 false,则禁止在交互式会话的输出中显示序列。

ShowProperties

若设置为 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

支持的版本:2, 3

请参见

参考

Microsoft.FSharp.Compiler.Interactive 命名空间 (F#)