搜索用对应于指定的文档标记的数据的节点查看。或者,搜索未展开的子节点。
命名空间: Microsoft.VisualStudio.Data.Framework
程序集: Microsoft.VisualStudio.Data.Framework(在 Microsoft.VisualStudio.Data.Framework.dll 中)
语法
声明
Public Overridable Function FindNode ( _
documentMoniker As String, _
searchUnpopulatedChildren As Boolean _
) As Integer
public virtual int FindNode(
string documentMoniker,
bool searchUnpopulatedChildren
)
public:
virtual int FindNode(
String^ documentMoniker,
bool searchUnpopulatedChildren
)
abstract FindNode :
documentMoniker:string *
searchUnpopulatedChildren:bool -> int
override FindNode :
documentMoniker:string *
searchUnpopulatedChildren:bool -> int
public function FindNode(
documentMoniker : String,
searchUnpopulatedChildren : boolean
) : int
参数
- documentMoniker
类型:System.String
文档标记。
- searchUnpopulatedChildren
类型:System.Boolean
指定是否搜索未展开的子节点(true),(false)。
返回值
类型:System.Int32
标识数据视图中指定节点的整数值或-1;如果未找到节点。
实现
IVsDataViewDocumentProvider.FindNode(String, Boolean)
备注
对继承者的说明
该派生类应重写此方法。
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关更多信息,请参见通过部分受信任的代码使用库。