AccessibleObject.IAccessible.get_accRole(Object) AccessibleObject.IAccessible.get_accRole(Object) AccessibleObject.IAccessible.get_accRole(Object) Method

定义

检索描述指定对象的角色的信息。Retrieves information that describes the role of the specified object.

 virtual System::Object ^ Accessibility.IAccessible.get_accRole(System::Object ^ childID) = Accessibility::IAccessible::get_accRole;
object IAccessible.get_accRole (object childID);
Function get_accRole (childID As Object) As Object Implements IAccessible.get_accRole

参数

childID
Object Object Object

要为其获取角色信息的辅助性对象的 ID 号。The ID number of the accessible object for which to get role information. 该参数为 0,则选择该对象;或者,如果该参数为子级 ID,则选择该对象的一个子对象。This parameter is 0 to select the object, or a child ID to select one of the object's child objects.

返回

提供有关指定辅助性对象的角色信息的对象。An object that provides role information about the specified accessible object.

适用于