共用方式為


IVsDataViewDocumentProvider.FindNode 方法

當由類別實作時,搜尋會對應至指定的文件 Moniker 的資料之節點來檢視。 或者,未展開的搜尋子節點。

命名空間:  Microsoft.VisualStudio.Data.Services.SupportEntities
組件:  Microsoft.VisualStudio.Data.Services (在 Microsoft.VisualStudio.Data.Services.dll 中)

語法

'宣告
Function FindNode ( _
    documentMoniker As String, _
    searchUnpopulatedChildren As Boolean _
) As Integer
int FindNode(
    string documentMoniker,
    bool searchUnpopulatedChildren
)
int FindNode(
    String^ documentMoniker, 
    bool searchUnpopulatedChildren
)
abstract FindNode : 
        documentMoniker:string * 
        searchUnpopulatedChildren:bool -> int
function FindNode(
    documentMoniker : String, 
    searchUnpopulatedChildren : boolean
) : int

參數

  • documentMoniker
    類型:String

    文件 Moniker。

  • searchUnpopulatedChildren
    類型:Boolean

    指定是否搜尋未展開的子節點 (true),false()。

傳回值

類型:Int32
識別資料檢視中的指定之節點的整數值,或-1 (如果找不到節點。

.NET Framework 安全性

請參閱

參考

IVsDataViewDocumentProvider 介面

Microsoft.VisualStudio.Data.Services.SupportEntities 命名空間