Infers a node path from the location of a node in the data view hierarchy.
Namespace: Microsoft.VisualStudio.Data
Assembly: Microsoft.VisualStudio.Data (in Microsoft.VisualStudio.Data.dll)
Syntax
'宣言
Public Function GetNodePath ( _
itemId As Integer _
) As String
'使用
Dim instance As DataViewHierarchyAccessor
Dim itemId As Integer
Dim returnValue As String
returnValue = instance.GetNodePath(itemId)
public string GetNodePath(
int itemId
)
public:
String^ GetNodePath(
int itemId
)
public function GetNodePath(
itemId : int
) : String
Parameters
itemId
Type: System.Int32The item ID of the node for which the node path should be inferred.
Return Value
Type: System.String
Returns the node path for the specified item, or returns a null reference (Nothing in Visual Basic) if not path is available.
Exceptions
| Exception | Condition |
|---|---|
| ArgumentException | The specified itemId is invalid. |
Remarks
This method is not implemented in Visual Studio 2005 and therefore always returns a null reference (Nothing in Visual Basic).
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