SyntaxNode.ContainsDirective(Int32) 方法
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
如果這個節點包含任何指示詞, (例如 #if
、 #nullable
等) 內具有相符種類,則傳回 true。
C#
public bool ContainsDirective(int rawKind);
member this.ContainsDirective : int -> bool
Public Function ContainsDirective (rawKind As Integer) As Boolean
- rawKind
- Int32
產品 | 版本 |
---|---|
Roslyn | 4.5.0, 4.6.0, 4.7.0, 4.8.0, 4.9.2, 4.12.2, 4.13.0 |