IFolderView2::SetGroupBy method

Groups the view by the given property key and direction.

Syntax


HRESULT SetGroupBy(
  [in] REFPROPERTYKEY key,
  [in] BOOL           fAscending
);

Parameters

key [in]

Type: REFPROPERTYKEY

A PROPERTYKEY by which the view should be grouped.

fAscending [in]

Type: BOOL

A value of type BOOL to indicate sort order of the groups.

Return value

Type: HRESULT

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

Requirements

Minimum supported client

Windows Vista [desktop apps only]

Minimum supported server

Windows Server 2008 [desktop apps only]

Header

Shobjidl.h

IDL

Shobjidl.idl

 

 

Show: