Skip to content

Latest commit

 

History

History
31 lines (24 loc) · 1.64 KB

return-properties-from-a-ui-automation-provider.md

File metadata and controls

31 lines (24 loc) · 1.64 KB
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
csharp
vb
providers, UI Automation, returning properties
properties, returned by UI Automation providers
UI Automation, providers returning properties
how-to

Return Properties from a UI Automation Provider

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.

Example

[!code-csharpUIAFragmentProvider_snip#117] [!code-vbUIAFragmentProvider_snip#117]

See also