FeedbackContext Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
FeedbackContext(FeedbackTrigger, String, PathInfo, ErrorRecord) |
Initializes a new instance of the FeedbackContext class. |
FeedbackContext(FeedbackTrigger, Ast, Token[], PathInfo, ErrorRecord) |
Initializes a new instance of the FeedbackContext class. |
FeedbackContext(FeedbackTrigger, String, PathInfo, ErrorRecord)
Initializes a new instance of the FeedbackContext class.
public FeedbackContext (System.Management.Automation.Subsystem.Feedback.FeedbackTrigger trigger, string commandLine, System.Management.Automation.PathInfo cwd, System.Management.Automation.ErrorRecord? lastError);
new System.Management.Automation.Subsystem.Feedback.FeedbackContext : System.Management.Automation.Subsystem.Feedback.FeedbackTrigger * string * System.Management.Automation.PathInfo * System.Management.Automation.ErrorRecord -> System.Management.Automation.Subsystem.Feedback.FeedbackContext
Public Sub New (trigger As FeedbackTrigger, commandLine As String, cwd As PathInfo, lastError As ErrorRecord)
Parameters
- trigger
- FeedbackTrigger
The trigger of this feedback call.
- commandLine
- String
The command line that was just executed.
- cwd
- PathInfo
The current location of the default session.
- lastError
- ErrorRecord
The error that was triggerd by the last command line.
Applies to
FeedbackContext(FeedbackTrigger, Ast, Token[], PathInfo, ErrorRecord)
Initializes a new instance of the FeedbackContext class.
public FeedbackContext (System.Management.Automation.Subsystem.Feedback.FeedbackTrigger trigger, System.Management.Automation.Language.Ast commandLineAst, System.Management.Automation.Language.Token[] commandLineTokens, System.Management.Automation.PathInfo cwd, System.Management.Automation.ErrorRecord? lastError);
new System.Management.Automation.Subsystem.Feedback.FeedbackContext : System.Management.Automation.Subsystem.Feedback.FeedbackTrigger * System.Management.Automation.Language.Ast * System.Management.Automation.Language.Token[] * System.Management.Automation.PathInfo * System.Management.Automation.ErrorRecord -> System.Management.Automation.Subsystem.Feedback.FeedbackContext
Public Sub New (trigger As FeedbackTrigger, commandLineAst As Ast, commandLineTokens As Token(), cwd As PathInfo, lastError As ErrorRecord)
Parameters
- trigger
- FeedbackTrigger
The trigger of this feedback call.
- commandLineAst
- Ast
The abstract syntax tree (AST) from parsing the last command line.
- commandLineTokens
- Token[]
The tokens from parsing the last command line.
- cwd
- PathInfo
The current location of the default session.
- lastError
- ErrorRecord
The error that was triggerd by the last command line.