IAccessible::put_accName

[This is preliminary documentation and subject to change.]

Sets the Name property for this object.

HRESULT put_accName(
  VARIANT varChild,
  BSTR szName
);
 

Parameters

varChild
[in] Value identifying the child whose name will be set. This parameter can be the child ID value (provided by the object), CHILDID_SELF for the object itself, or a string identifying the child (such as "A1").
szName
[in] String that specifies the name to be associated with this item.

Return Values

Returns S_OK if successful or E_INVALIDARG or another standard COM error code otherwise. If the object does not support setting names, the method returns S_FALSE.

See Also

IAccessible::get_accName