다음을 통해 공유


ElseBlockSyntax.WithElseStatement(ElseStatementSyntax) Method

Definition

Returns a copy of this with the ElseStatement 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::ElseBlockSyntax ^ WithElseStatement(Microsoft::CodeAnalysis::VisualBasic::Syntax::ElseStatementSyntax ^ elseStatement);
public Microsoft.CodeAnalysis.VisualBasic.Syntax.ElseBlockSyntax WithElseStatement (Microsoft.CodeAnalysis.VisualBasic.Syntax.ElseStatementSyntax elseStatement);
member this.WithElseStatement : Microsoft.CodeAnalysis.VisualBasic.Syntax.ElseStatementSyntax -> Microsoft.CodeAnalysis.VisualBasic.Syntax.ElseBlockSyntax
Public Function WithElseStatement (elseStatement As ElseStatementSyntax) As ElseBlockSyntax

Parameters

elseStatement
ElseStatementSyntax

Returns

Applies to