Partilhar via


IfDirectiveTriviaSyntax.WithCondition(ExpressionSyntax) Method

Definition

public:
 Microsoft::CodeAnalysis::CSharp::Syntax::IfDirectiveTriviaSyntax ^ WithCondition(Microsoft::CodeAnalysis::CSharp::Syntax::ExpressionSyntax ^ condition);
public Microsoft.CodeAnalysis.CSharp.Syntax.IfDirectiveTriviaSyntax WithCondition (Microsoft.CodeAnalysis.CSharp.Syntax.ExpressionSyntax condition);
override this.WithCondition : Microsoft.CodeAnalysis.CSharp.Syntax.ExpressionSyntax -> Microsoft.CodeAnalysis.CSharp.Syntax.IfDirectiveTriviaSyntax
Public Function WithCondition (condition As ExpressionSyntax) As IfDirectiveTriviaSyntax

Parameters

condition
ExpressionSyntax

Returns

Applies to