PowerShellTryStatementSyntax Class
public sealed class PowerShellTryStatementSyntax : ShellStatementSyntaxNo documentation is available.
- Inheritance
ShellStatementSyntaxPowerShellTryStatementSyntax
Properties
| Name | Description |
|---|---|
| Body | |
| CatchClauses | |
| FinallyClause | |
| TryKeyword |
Body
Syntax.g.csCatchClauses
Syntax.g.cspublic SyntaxList<PowerShellCatchClauseSyntax> CatchClauses { get; }Property value
No documentation is available.
FinallyClause
Syntax.g.cspublic PowerShellFinallyClauseSyntax? FinallyClause { get; }Property value
No documentation is available.
TryKeyword
Syntax.g.csMethods
| Name | Description |
|---|---|
| Accept(ShellSyntaxVisitor) | |
| Accept<TResult>(ShellSyntaxVisitor<TResult>) | |
| Update(SyntaxToken, PowerShellScriptBlockSyntax, SyntaxList<PowerShellCatchClauseSyntax>, PowerShellFinallyClauseSyntax?) | Returns this node with the given parts, or itself when nothing changed. |
| WithBody(PowerShellScriptBlockSyntax) | Returns this node with body in place of its PowerShellTryStatementSyntax.Body. |
| WithCatchClauses(SyntaxList<PowerShellCatchClauseSyntax>) | Returns this node with catchClauses in place of its PowerShellTryStatementSyntax.CatchClauses. |
| WithFinallyClause(PowerShellFinallyClauseSyntax?) | Returns this node with finallyClause in place of its PowerShellTryStatementSyntax.FinallyClause. |
| WithTryKeyword(SyntaxToken) | Returns this node with tryKeyword in place of its PowerShellTryStatementSyntax.TryKeyword. |
Accept overloads
Accept(ShellSyntaxVisitor)
Syntax.g.cspublic override void Accept(ShellSyntaxVisitor visitor)Parameters
visitorShellSyntaxVisitor
No documentation is available.
Accept<TResult>(ShellSyntaxVisitor<TResult>)
Syntax.g.cspublic override TResult? Accept<TResult>(ShellSyntaxVisitor<TResult> visitor)No documentation is available.
Update(SyntaxToken, PowerShellScriptBlockSyntax, SyntaxList<PowerShellCatchClauseSyntax>, PowerShellFinallyClauseSyntax?)
Syntax.g.csReturns this node with the given parts, or itself when nothing changed.
public PowerShellTryStatementSyntax Update(SyntaxToken tryKeyword, PowerShellScriptBlockSyntax body, SyntaxList<PowerShellCatchClauseSyntax> catchClauses, PowerShellFinallyClauseSyntax? finallyClause)Parameters
tryKeywordSyntaxTokenbodyPowerShellScriptBlockSyntaxcatchClausesSyntaxList<PowerShellCatchClauseSyntax>finallyClausePowerShellFinallyClauseSyntax?
Returns
WithBody(PowerShellScriptBlockSyntax)
Syntax.g.csReturns this node with body in place of its PowerShellTryStatementSyntax.Body.
public PowerShellTryStatementSyntax WithBody(PowerShellScriptBlockSyntax body)WithCatchClauses(SyntaxList<PowerShellCatchClauseSyntax>)
Syntax.g.csReturns this node with catchClauses in place of its PowerShellTryStatementSyntax.CatchClauses.
public PowerShellTryStatementSyntax WithCatchClauses(SyntaxList<PowerShellCatchClauseSyntax> catchClauses)WithFinallyClause(PowerShellFinallyClauseSyntax?)
Syntax.g.csReturns this node with finallyClause in place of its PowerShellTryStatementSyntax.FinallyClause.
public PowerShellTryStatementSyntax WithFinallyClause(PowerShellFinallyClauseSyntax? finallyClause)WithTryKeyword(SyntaxToken)
Syntax.g.csReturns this node with tryKeyword in place of its PowerShellTryStatementSyntax.TryKeyword.
public PowerShellTryStatementSyntax WithTryKeyword(SyntaxToken tryKeyword)