Compartir a través de


DataViewHierarchyAccessor.GetNodeId Method

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

'Declaración
Public Function GetNodeId ( _
    itemId As Integer _
) As String
public string GetNodeId(
    int itemId
)
public:
String^ GetNodeId(
    int itemId
)
member GetNodeId : 
        itemId:int -> string 
public function GetNodeId(
    itemId : int
) : String

Parameters

  • itemId
    Type: System.Int32
    Item ID of the object for which to retrieve the node ID.

Return Value

Type: System.String
Returns the node ID, or returns nulla null reference (Nothing in Visual Basic) if no node ID exists.

Exceptions

Exception Condition
ArgumentException

The specified itemId is invalid.

.NET Framework Security

See Also

Reference

DataViewHierarchyAccessor Class

Microsoft.VisualStudio.Data Namespace