DataViewHierarchyAccessor.GetObjectType Method

Retrieves the type of the data object associated with the node matching the specified item ID.

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

Syntax

'宣言
Public Function GetObjectType ( _
    itemId As Integer _
) As String
'使用
Dim instance As DataViewHierarchyAccessor
Dim itemId As Integer
Dim returnValue As String

returnValue = instance.GetObjectType(itemId)
public string GetObjectType(
    int itemId
)
public:
String^ GetObjectType(
    int itemId
)
public function GetObjectType(
    itemId : int
) : String

Parameters

  • itemId
    Type: System.Int32

    The item ID of the node for which the object type should be retrieved.

Return Value

Type: System.String

Returns a string specifying the type of the data object associated with the node matching the specified item ID.

Exceptions

Exception Condition
ArgumentException

The specified itemId is invalid.

Permissions

See Also

Reference

DataViewHierarchyAccessor Class

DataViewHierarchyAccessor Members

Microsoft.VisualStudio.Data Namespace