SyntaxNode.Contains(SyntaxNode) 方法

定义

确定指定的节点是否为此节点的子代。 返回当前节点的 true。

public:
 bool Contains(Microsoft::CodeAnalysis::SyntaxNode ^ node);
public bool Contains (Microsoft.CodeAnalysis.SyntaxNode node);
public bool Contains (Microsoft.CodeAnalysis.SyntaxNode? node);
member this.Contains : Microsoft.CodeAnalysis.SyntaxNode -> bool
Public Function Contains (node As SyntaxNode) As Boolean

参数

node
SyntaxNode

返回

适用于