IVsDataViewDocumentProvider.FindNode(String, Boolean) 方法

定义

当由类实现时,在数据视图中搜索与指定的文档名字对象相对应的节点。 还可以搜索尚未展开的子节点。

public:
 int FindNode(System::String ^ documentMoniker, bool searchUnpopulatedChildren);
public int FindNode (string documentMoniker, bool searchUnpopulatedChildren);
abstract member FindNode : string * bool -> int
Public Function FindNode (documentMoniker As String, searchUnpopulatedChildren As Boolean) As Integer

参数

documentMoniker
String

文档名字对象。

searchUnpopulatedChildren
Boolean

指定是否搜索尚未展开 () 的子节点,或者是否 (错误) 。

返回

Int32

标识数据视图中指定节点的整数值; 如果找不到该节点,则为-1。

适用于