Retrieves the display name of a specified node.
Namespace: Microsoft.VisualStudio.Data
Assembly: Microsoft.VisualStudio.Data (in Microsoft.VisualStudio.Data.dll)
Syntax
'宣言
Public Function GetNodeName ( _
itemId As Integer _
) As String
'使用
Dim instance As DataViewHierarchyAccessor
Dim itemId As Integer
Dim returnValue As String
returnValue = instance.GetNodeName(itemId)
public string GetNodeName(
int itemId
)
public:
String^ GetNodeName(
int itemId
)
public function GetNodeName(
itemId : int
) : String
Parameters
itemId
Type: System.Int32The item ID of the node for which the name is retrieved.
Return Value
Type: System.String
Returns the string literal display name of the specified node.
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