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
nodePath
Type: System.StringThe path to a node.
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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
See Also
Reference
DataViewHierarchyAccessor Class