Partager via


DataViewDocumentProvider.FindNode Method

Searches for a node in the data view that corresponds to the specified document moniker. Optionally, searches child nodes that have not been expanded yet.

Namespace:  Microsoft.VisualStudio.Data.Framework
Assembly:  Microsoft.VisualStudio.Data.Framework (in Microsoft.VisualStudio.Data.Framework.dll)

Syntax

'Declaration
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

Parameters

  • searchUnpopulatedChildren
    Type: System.Boolean

    Specifies whether to search child nodes that have not been expanded yet (true), or not (false).

Return Value

Type: System.Int32
An integer value that identifies the specified node in the data view, or -1 if node is not found.

Implements

IVsDataViewDocumentProvider.FindNode(String, Boolean)

Remarks

Notes to Inheritors

The derived class should override this method.

.NET Framework Security

See Also

Reference

DataViewDocumentProvider Class

Microsoft.VisualStudio.Data.Framework Namespace