Delen via


SingleLineIfStatementSyntax.WithElseClause(SingleLineElseClauseSyntax) Method

Definition

Returns a copy of this with the ElseClause 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::SingleLineIfStatementSyntax ^ WithElseClause(Microsoft::CodeAnalysis::VisualBasic::Syntax::SingleLineElseClauseSyntax ^ elseClause);
public Microsoft.CodeAnalysis.VisualBasic.Syntax.SingleLineIfStatementSyntax WithElseClause (Microsoft.CodeAnalysis.VisualBasic.Syntax.SingleLineElseClauseSyntax elseClause);
member this.WithElseClause : Microsoft.CodeAnalysis.VisualBasic.Syntax.SingleLineElseClauseSyntax -> Microsoft.CodeAnalysis.VisualBasic.Syntax.SingleLineIfStatementSyntax
Public Function WithElseClause (elseClause As SingleLineElseClauseSyntax) As SingleLineIfStatementSyntax

Parameters

Returns

Applies to