IMultipleViewProvider.SetCurrentView Method (Int32)

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Sets the current control-specific view.

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

void SetCurrentView(
	int viewId
)

Parameters

viewId
Type: System.Int32

A view identifier.

Exception Condition
ArgumentException

viewId is not a member of the supported views collection.

View identifiers can be retrieved by using GetSupportedViews.

The collection of view identifiers must be identical across instances.

.NET Framework
Available since 3.0
Silverlight
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Return to top
Show: