Share via


TryBlockSyntax.WithEndTryStatement(EndBlockStatementSyntax) Method

Definition

Returns a copy of this with the EndTryStatement property changed to the specified value. Returns this instance if the specified value is the same as the current value.

public:
 Microsoft::CodeAnalysis::VisualBasic::Syntax::TryBlockSyntax ^ WithEndTryStatement(Microsoft::CodeAnalysis::VisualBasic::Syntax::EndBlockStatementSyntax ^ endTryStatement);
public Microsoft.CodeAnalysis.VisualBasic.Syntax.TryBlockSyntax WithEndTryStatement (Microsoft.CodeAnalysis.VisualBasic.Syntax.EndBlockStatementSyntax endTryStatement);
member this.WithEndTryStatement : Microsoft.CodeAnalysis.VisualBasic.Syntax.EndBlockStatementSyntax -> Microsoft.CodeAnalysis.VisualBasic.Syntax.TryBlockSyntax
Public Function WithEndTryStatement (endTryStatement As EndBlockStatementSyntax) As TryBlockSyntax

Parameters

endTryStatement
EndBlockStatementSyntax

Returns

Applies to