Sets the value of control.
HRESULT SetValue( LPCWSTR val );
The value to set. The provider is responsible for converting the value to the appropriate data type.
If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.
Single-line edit controls support programmatic access to their contents by implementing IValueProvider. However, multi-line edit controls do not implement IValueProvider; instead they provide access to their content by implementing ITextProvider.
Controls such as ListItem and TreeItem must implement IValueProvider if the value of any of the items is editable, regardless of the current edit mode of the control. The parent control must also implement IValueProvider if the child items are editable.
|Minimum supported client||Windows XP [desktop apps | UWP apps]|
|Minimum supported server||Windows Server 2003 [desktop apps | UWP apps]|
|Header||uiautomationcore.h (include UIAutomation.h)|