kamagra how much to take

Test For Flat Folder Structure In SharePoint Document Library

This example shows you how to return a boolean value if there is a flat folder structure present.

  1. public static bool ViewHasFlatFolderStructure(SPView view)
  2. {
  3.         bool flagTest = false;
  4.         if (view != null)
  5.         {
  6.                 flagTest = (view.Scope == SPViewScope.Recursive) | (view.Scope == SPViewScope.RecursiveAll);
  7.         }
  8.         return flagTest;
  9. }

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>