DataViewHierarchyAccessor.GetObjectProperty(Int32, String) Method

Definition

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

public:
 System::Object ^ GetObjectProperty(int itemId, System::String ^ propertyName);
public object GetObjectProperty (int itemId, string propertyName);
member this.GetObjectProperty : int * string -> obj
Public Function GetObjectProperty (itemId As Integer, propertyName As String) As Object

Parameters

itemId
Int32

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

propertyName
String

The name of the property to retrieve.

Returns

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

Exceptions

The propertyName parameter is null.

The specified itemId is invalid.

Applies to