Share via


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

'Declaration
Public Function GetObjectProperty ( _
    itemId As Integer, _
    propertyName As String _
) As Object
public Object GetObjectProperty(
    int itemId,
    string propertyName
)
public:
Object^ GetObjectProperty(
    int itemId, 
    String^ propertyName
)
member GetObjectProperty : 
        itemId:int * 
        propertyName:string -> Object
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.

.NET Framework Security

See Also

Reference

DataViewHierarchyAccessor Class

Microsoft.VisualStudio.Data Namespace