title | description | ms.date | dev_langs | helpviewer_keywords | ms.topic | |||||
---|---|---|---|---|---|---|---|---|---|---|
Return Properties from a UI Automation Provider |
See how a UI Automation provider can return properties of an element to client applications in .NET. |
03/30/2017 |
|
|
how-to |
Note
This documentation is intended for .NET Framework developers who want to use the managed UI Automation classes defined in the xref:System.Windows.Automation namespace. For the latest information about UI Automation, see Windows Automation API: UI Automation.
This topic contains sample code that shows how a UI Automation provider can return properties of an element to client applications.
For any property it does not explicitly support, the provider must return null
(Nothing
in Visual Basic). This ensures that UI Automation attempts to obtain the property from another source, such as the host window provider.
[!code-csharpUIAFragmentProvider_snip#117] [!code-vbUIAFragmentProvider_snip#117]