Click or drag to resize

CommandLineScriptGlobals Class



Defines global members that common command line script hosts expose to the hosted scripts.
Inheritance Hierarchy
SystemObject
  Microsoft.CodeAnalysis.Scripting.HostingCommandLineScriptGlobals

Namespace:  Microsoft.CodeAnalysis.Scripting.Hosting
Assembly:  Microsoft.CodeAnalysis.Scripting (in Microsoft.CodeAnalysis.Scripting.dll) Version: 2.3.0-dev-56735-00. Commit Hash: <developer build>
Syntax
public class CommandLineScriptGlobals

The CommandLineScriptGlobals type exposes the following members.

Constructors
  NameDescription
Public methodCommandLineScriptGlobals
Initializes a new instance of the CommandLineScriptGlobals class
Top
Properties
  NameDescription
Public propertyArgs
Arguments given to the script.
Public propertyPrintOptions
Top
Methods
  NameDescription
Public methodPrint
Pretty-prints an object.
Top
Remarks
It is recommended for hosts to expose the members defined by this class and implement the same semantics, so that they can run scripts written against standard hosts. Specialized hosts that target niche scenarios might choose to not provide this functionality.
See Also