Retrieves the node ID as specified in the data view support XML from an item ID.
Namespace: Microsoft.VisualStudio.Data
Assembly: Microsoft.VisualStudio.Data (in Microsoft.VisualStudio.Data.dll)
Syntax
'宣言
Public Function GetNodeId ( _
itemId As Integer _
) As String
'使用
Dim instance As DataViewHierarchyAccessor
Dim itemId As Integer
Dim returnValue As String
returnValue = instance.GetNodeId(itemId)
public string GetNodeId(
int itemId
)
public:
String^ GetNodeId(
int itemId
)
public function GetNodeId(
itemId : int
) : String
Parameters
itemId
Type: System.Int32Item ID of the object for which to retrieve the node ID.
Return Value
Type: System.String
Returns the node ID, or returns a null reference (Nothing in Visual Basic) if no node ID exists.
Exceptions
| Exception | Condition |
|---|---|
| ArgumentException | The specified itemId is invalid. |
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