Compartir a través de


DataViewHierarchyAccessor.GetObjectIdentifier Method

Retrieves the data-source-specific identifier of the object associated with the node matching the specified item ID.

Namespace:  Microsoft.VisualStudio.Data
Assembly:  Microsoft.VisualStudio.Data (in Microsoft.VisualStudio.Data.dll)

Syntax

'Declaración
Public Function GetObjectIdentifier ( _
    itemId As Integer _
) As Object()
public Object[] GetObjectIdentifier(
    int itemId
)
public:
array<Object^>^ GetObjectIdentifier(
    int itemId
)
member GetObjectIdentifier : 
        itemId:int -> Object[] 
public function GetObjectIdentifier(
    itemId : int
) : Object[]

Parameters

  • itemId
    Type: System.Int32
    The item ID of the node for which the object identifier should be retrieved.

Return Value

Type: array<System.Object[]
Returns the data-source-specific identifier of the object associated with the node matching the specified item ID.

Exceptions

Exception Condition
ArgumentException

The specified itemId is invalid.

.NET Framework Security

See Also

Reference

DataViewHierarchyAccessor Class

Microsoft.VisualStudio.Data Namespace