Compartir a través de


IMultipleViewProvider.GetSupportedViews Method

Microsoft Silverlight will reach end of support after October 2021. Learn more.

Retrieves a collection of control-specific view identifiers.

Namespace:  System.Windows.Automation.Provider
Assembly:  System.Windows (in System.Windows.dll)

Syntax

'Declaration
Function GetSupportedViews As Integer()
int[] GetSupportedViews()

Return Value

Type: array<System.Int32[]
A collection of values that identifies the views available for a UI automation element.

Remarks

The collection of view identifiers must be identical across instances.

View identifier values can be passed to GetViewName.

A typical implementation pattern for the multiple view paradigm is to have some property on the owner control where UI automation is supported that exposes the possible views as a standard enumeration. Then, you map the integer values of that enumeration to the integers you report in the GetSupportedViews collection. GetViewName values would also correspond to the member names of the enumeration member with that value, at least when used with neutral or invariant culture.

Version Information

Silverlight

Supported in: 5, 4, 3

Silverlight for Windows Phone

Supported in: Windows Phone OS 7.1, Windows Phone OS 7.0

Platforms

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.