SyntaxNode.ContainsDirective(Int32) Method

Definition

Returns true if this node contains any directives (e.g. #if, #nullable, etc.) within it with a matching kind.

C#
public bool ContainsDirective(int rawKind);

Parameters

rawKind
Int32

Returns

Applies to

Product Versions
Roslyn 4.5.0, 4.6.0, 4.7.0, 4.8.0, 4.9.2, 4.12.2, 4.13.0