Click or drag to resize

ScriptT Class



Inheritance Hierarchy
SystemObject
  Microsoft.CodeAnalysis.ScriptingScript
    Microsoft.CodeAnalysis.ScriptingScriptT

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

Type Parameters

T

The ScriptT type exposes the following members.

Properties
  NameDescription
Public propertyCode
The source code of the script.
(Inherited from Script.)
Public propertyGlobalsType
The type of an object whose members can be accessed by the script as global variables.
(Inherited from Script.)
Public propertyOptions
The options used by this script.
(Inherited from Script.)
Public propertyPrevious
A script that will run first when this script is run. Any declarations made in the previous script can be referenced in this script. The end state from running this script includes all declarations made by both scripts.
(Inherited from Script.)
Public propertyReturnType (Overrides ScriptReturnType.)
Top
Methods
  NameDescription
Public methodCompile
Forces the script through the compilation step. If not called directly, the compilation step will occur on the first call to Run.
(Inherited from Script.)
Public methodContinueWith(Stream, ScriptOptions)
Continues the script with given Stream representing code.
(Inherited from Script.)
Public methodContinueWith(String, ScriptOptions)
Continues the script with given code snippet.
(Inherited from Script.)
Public methodCreateDelegate
Creates a delegate that will run this script from the beginning when invoked.
Public methodGetCompilation
Get's the Compilation that represents the semantics of the script.
(Inherited from Script.)
Public methodRunAsync(Void, ScriptState) (Inherited from Script.)
Public methodRunAsync(Void, ScriptStateT)
Public methodRunAsync(Void, ScriptState, Object) (Inherited from Script.)
Public methodRunAsync(Void, ScriptStateT, Object)
Public methodRunFromAsync(Void, ScriptState) (Inherited from Script.)
Public methodRunFromAsync(Void, ScriptStateT)
Public methodRunFromAsync(Void, ScriptState, ScriptState) (Inherited from Script.)
Public methodRunFromAsync(Void, ScriptStateT, ScriptState)
Public methodWithOptions
Top
See Also