AccessibleObject.IAccessible.set_accName(Object, String) AccessibleObject.IAccessible.set_accName(Object, String) AccessibleObject.IAccessible.set_accName(Object, String) Method

定义

将新的可访问名称分配给指定的元素。Assigns a new accessible name to the specified element.

 virtual void Accessibility.IAccessible.set_accName(System::Object ^ childID, System::String ^ newName) = Accessibility::IAccessible::set_accName;
void IAccessible.set_accName (object childID, string newName);
Sub set_accName (childID As Object, newName As String) Implements IAccessible.set_accName

参数

childID
Object Object Object

要向其分配新名称的辅助性对象的 ID 号。The ID number of the accessible object to which to assign a new name. 该参数为 0,则选择该对象;或者,如果该参数为子级 ID,则选择该对象的一个子对象。This parameter is 0 to select the object, or a child ID to select one of the object's child objects.

newName
String String String

分配给 childID 的新名称。The new name to assign to childID.

适用于