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

'宣言
Public Function GetItemIdFromNodePath ( _
    nodePath As String _
) As Integer
'使用
Dim instance As DataViewHierarchyAccessor
Dim nodePath As String
Dim returnValue As Integer

returnValue = instance.GetItemIdFromNodePath(nodePath)
public int GetItemIdFromNodePath(
    string nodePath
)
public:
int GetItemIdFromNodePath(
    String^ nodePath
)
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.

Permissions

See Also

Reference

DataViewHierarchyAccessor Class

DataViewHierarchyAccessor Members

Microsoft.VisualStudio.Data Namespace