DataViewHierarchyAccessor.GetObjectProperty(Int32, String) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
检索与与指定项 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
要检索的属性的名称。
返回
返回与指定项 ID 匹配的节点关联的数据对象的属性值。
例外
propertyName 参数为 null。
指定的 itemId 无效。