AccessibleObject.IAccessible.get_accRole(Object) 方法

定義

擷取描述指定之物件角色的資訊。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

要取得角色資訊之可存取物件的 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.

實作

Accessibility.IAccessible.get_accRole(System.Object)

適用於