IMultipleViewProvider::GetSupportedViews method

Retrieves a collection of control-specific view identifiers.

Syntax


HRESULT GetSupportedViews(
  [out, retval] SAFEARRAY **pRetVal
);

Parameters

pRetVal [out, retval]

Type: SAFEARRAY**

Receives a collection of control-specific integer values that identify the views available for a UI Automation element. This parameter is passed uninitialized.

Return value

Type: HRESULT

If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Remarks

An empty array is returned by UIAutoCore.dll if the provider does not supply any view identifiers.

The collection of view identifiers must be identical for all instances of a control.

View identifier values can be passed to IMultipleViewProvider::GetViewName.

Requirements

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)

IDL

UIAutomationCore.idl

DLL

Uiautomationcore.dll

See also

Reference
IMultipleViewProvider
Conceptual
UI Automation Providers Overview
Best Practices for Using Safe Arrays

 

 

Show: