DataViewHierarchyAccessor.GetObjectProperty(Int32, String) 方法

定义

检索与与指定项 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

参数

itemId
Int32

应为其检索对象属性的节点的项 ID。

propertyName
String

要检索的属性的名称。

返回

Object

返回与指定项 ID 匹配的节点关联的数据对象的属性值。

例外

propertyName 参数为 null。

指定的 itemId 无效。

适用于