Share via


DataViewHierarchyAccessor.GetItemIdFromNodePath Method

Infers the item ID of a node in the data view hierarchy given a path to the node.

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

Syntax

'Declaration
Public Function GetItemIdFromNodePath ( _
    nodePath As String _
) As Integer
public int GetItemIdFromNodePath(
    string nodePath
)
public:
int GetItemIdFromNodePath(
    String^ nodePath
)
member GetItemIdFromNodePath : 
        nodePath:string -> int
public function GetItemIdFromNodePath(
    nodePath : String
) : int

Parameters

Return Value

Type: System.Int32
Returns the item ID of the node in the data view hierarchy, or null if no node was found.

Exceptions

Exception Condition
ArgumentNullException

The nodePath parameter is null.

.NET Framework Security

See Also

Reference

DataViewHierarchyAccessor Class

Microsoft.VisualStudio.Data Namespace