Version

ExpandToLevelAsync(IFilterViewModel,Int32,Boolean) Method

Asynchronously loads and expands FilterMembers hierarchy up to the specified level depth.
Syntax
'Declaration
 
Public Overloads Function ExpandToLevelAsync( _
   ByVal filterViewModel As IFilterViewModel, _
   ByVal levelDepth As Integer, _
   Optional ByVal refreshGrid As Boolean _
) As Task
public Task ExpandToLevelAsync( 
   IFilterViewModel filterViewModel,
   int levelDepth,
   bool refreshGrid
)

Parameters

filterViewModel
The IFilterViewModel whose FilterMembers hierarchy will be expanded.
levelDepth
The level depth of FilterMembers hierarchy will be expanded up to.
refreshGrid
Boolean value indicating whether to execute an additional task which calls the RefreshGrid method.

Return Value

The System.Threading.Tasks.Task which completes when all members of FilterMembers hierarchy are loaded and set to expanded up to the specified level depeth.
Remarks

To preserve legacy behavior, the value of the refreshGrid parameter resolves to false when no value has been specified.

When true is specified as the value of the refreshGrid, a reference to this additional task is returned. This additional task is executed as a continuation, on the same thread as the antecedent Task.

Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also