Share via


IMultipleViewProvider::GetSupportedViews Method

Retrieves a collection of control-specific view identifiers.

Syntax

HRESULT GetSupportedViews(      
    SAFEARRAY *pRetVal
);

Parameters

  • pRetVal
    [out, retval] The address of a variable that receives a SAFEARRAY that contains a collection of control-specific integer values that identify the views available for a Microsoft UI Automation element. This parameter is passed uninitialized.

Return Value

Returns S_OK if successful, or an error value otherwise.

Remarks

An empty array is returned by UIAutoCore.dll when the provider doesn't supply any values.

The collection of view identifiers must be identical across instances.

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

See Also

UI Automation Providers Overview, Working with Safe Arrays