DataViewHierarchyAccessor.GetObjectProperty Method

Retrieves a property of a 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 GetObjectProperty ( _
    itemId As Integer, _
    propertyName As String _
) As Object
'使用
Dim instance As DataViewHierarchyAccessor
Dim itemId As Integer
Dim propertyName As String
Dim returnValue As Object

returnValue = instance.GetObjectProperty(itemId, _
    propertyName)
public Object GetObjectProperty(
    int itemId,
    string propertyName
)
public:
Object^ GetObjectProperty(
    int itemId, 
    String^ propertyName
)
public function GetObjectProperty(
    itemId : int, 
    propertyName : String
) : Object

Parameters

  • itemId
    Type: System.Int32

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

  • propertyName
    Type: System.String

    The name of the property to retrieve.

Return Value

Type: System.Object

Returns the value of the property of the data object associated with the node matching the specified item ID.

Exceptions

Exception Condition
ArgumentNullException

The propertyName parameter is null.

ArgumentException

The specified itemId is invalid.

Permissions

See Also

Reference

DataViewHierarchyAccessor Class

DataViewHierarchyAccessor Members

Microsoft.VisualStudio.Data Namespace