다음을 통해 공유


IfStatementSyntax.WithElse(ElseClauseSyntax) Method

Definition

public:
 Microsoft::CodeAnalysis::CSharp::Syntax::IfStatementSyntax ^ WithElse(Microsoft::CodeAnalysis::CSharp::Syntax::ElseClauseSyntax ^ else);
public Microsoft.CodeAnalysis.CSharp.Syntax.IfStatementSyntax WithElse (Microsoft.CodeAnalysis.CSharp.Syntax.ElseClauseSyntax else);
public Microsoft.CodeAnalysis.CSharp.Syntax.IfStatementSyntax WithElse (Microsoft.CodeAnalysis.CSharp.Syntax.ElseClauseSyntax? else);
member this.WithElse : Microsoft.CodeAnalysis.CSharp.Syntax.ElseClauseSyntax -> Microsoft.CodeAnalysis.CSharp.Syntax.IfStatementSyntax
Public Function WithElse (else As ElseClauseSyntax) As IfStatementSyntax

Parameters

Returns

Applies to