ArcGISPortalViewer.ViewModel.MainViewModel.ClearAllCollections C# (CSharp) Method

ClearAllCollections() private method

private ClearAllCollections ( ) : void
return void
        private void ClearAllCollections()
        {
            try
            {
                if (MyMaps != null) MyMaps.Clear();
                if (FeaturedItems != null) FeaturedItems.Clear();
                if (RecentItems != null) RecentItems.Clear();
                if (MostPopularItems != null) MostPopularItems.Clear();
                if (FavoriteItems != null && (FavoriteItems.Items != null && FavoriteItems.Items.Count > 0))
                    FavoriteItems.Items.Clear();
                if (PortalGroups != null) PortalGroups.Clear();
            }
            catch (Exception ex)
            {
                var _ = App.ShowExceptionDialog(ex);    
            }          
        }      
        #endregion