Version

GetFilterViewModelFromHierarchy(IHierarchy) Method

Gets the IFilterViewModel instance related to the hierarchy if there is such IFilterViewModel registered for that hierarchy.
Syntax
'Declaration
 
Public Overloads Function GetFilterViewModelFromHierarchy( _
   ByVal hierarchy As IHierarchy _
) As IFilterViewModel
public IFilterViewModel GetFilterViewModelFromHierarchy( 
   IHierarchy hierarchy
)

Parameters

hierarchy
The hierarchy.

Return Value

The filter view model.
Remarks
This method is used when the IFilterViewModel should work in conjunction with IPivotDataSlicer and TargetHierarchy points to same hierarchy instance. In this case the result is the instance of IFilterViewModel which the IPivotDataSlicer works with, so both the IFilterViewModel and the IPivotDataSlicer are working synchronized with each other. This method also can be used when is required the instance of IFilterViewModel already added
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