다음을 통해 공유


MultiLineIfBlockSyntax.WithIfStatement(IfStatementSyntax) Method

Definition

Returns a copy of this with the IfStatement 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::MultiLineIfBlockSyntax ^ WithIfStatement(Microsoft::CodeAnalysis::VisualBasic::Syntax::IfStatementSyntax ^ ifStatement);
public Microsoft.CodeAnalysis.VisualBasic.Syntax.MultiLineIfBlockSyntax WithIfStatement (Microsoft.CodeAnalysis.VisualBasic.Syntax.IfStatementSyntax ifStatement);
member this.WithIfStatement : Microsoft.CodeAnalysis.VisualBasic.Syntax.IfStatementSyntax -> Microsoft.CodeAnalysis.VisualBasic.Syntax.MultiLineIfBlockSyntax
Public Function WithIfStatement (ifStatement As IfStatementSyntax) As MultiLineIfBlockSyntax

Parameters

ifStatement
IfStatementSyntax

Returns

Applies to