PowerShellTryStatementSyntax Class

public sealed class PowerShellTryStatementSyntax : ShellStatementSyntax

No documentation is available.

Inheritance
ShellStatementSyntax PowerShellTryStatementSyntax

Properties

NameDescription
Body
CatchClauses
FinallyClause
TryKeyword
public PowerShellScriptBlockSyntax Body { get; }

No documentation is available.

CatchClauses

Syntax.g.cs
public SyntaxList<PowerShellCatchClauseSyntax> CatchClauses { get; }

No documentation is available.

FinallyClause

Syntax.g.cs
public PowerShellFinallyClauseSyntax? FinallyClause { get; }

No documentation is available.

TryKeyword

Syntax.g.cs
public SyntaxToken TryKeyword { get; }

Property value

SyntaxToken

No documentation is available.

Methods

NameDescription
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.cs
public override void Accept(ShellSyntaxVisitor visitor)
Parameters
visitor ShellSyntaxVisitor

No documentation is available.

Accept<TResult>(ShellSyntaxVisitor<TResult>)

Syntax.g.cs
public override TResult? Accept<TResult>(ShellSyntaxVisitor<TResult> visitor)
Type parameters
TResult
Parameters
visitor ShellSyntaxVisitor<TResult>
Returns

TResult?

No documentation is available.

Update(SyntaxToken, PowerShellScriptBlockSyntax, SyntaxList<PowerShellCatchClauseSyntax>, PowerShellFinallyClauseSyntax?)

Syntax.g.cs

Returns this node with the given parts, or itself when nothing changed.

WithBody(PowerShellScriptBlockSyntax)

Syntax.g.cs

WithCatchClauses(SyntaxList<PowerShellCatchClauseSyntax>)

Syntax.g.cs

Returns this node with catchClauses in place of its PowerShellTryStatementSyntax.CatchClauses.

WithFinallyClause(PowerShellFinallyClauseSyntax?)

Syntax.g.cs

Returns this node with finallyClause in place of its PowerShellTryStatementSyntax.FinallyClause.

public PowerShellTryStatementSyntax WithFinallyClause(PowerShellFinallyClauseSyntax? finallyClause)

WithTryKeyword(SyntaxToken)

Syntax.g.cs

Returns this node with tryKeyword in place of its PowerShellTryStatementSyntax.TryKeyword.

public PowerShellTryStatementSyntax WithTryKeyword(SyntaxToken tryKeyword)

Parameters

tryKeyword SyntaxToken

Returns

PowerShellTryStatementSyntax