コード例 #1
0
 internal static bool IsElcFolder(object[] folderProps)
 {
     if (ElcMailboxHelper.Exists(folderProps[3]))
     {
         return(true);
     }
     if (ElcMailboxHelper.Exists(folderProps[5]) && folderProps[5] is int?)
     {
         int num = (int)folderProps[5];
         if ((num & 1) != 0)
         {
             return(true);
         }
     }
     return(false);
 }
コード例 #2
0
 internal static bool IsElcFolder(Folder folder)
 {
     object[] properties = folder.GetProperties(new PropertyDefinition[]
     {
         FolderSchema.ELCPolicyIds,
         FolderSchema.AdminFolderFlags
     });
     if (ElcMailboxHelper.Exists(properties[0]))
     {
         return(true);
     }
     if (ElcMailboxHelper.Exists(properties[1]))
     {
         int num = (int)properties[1];
         if ((num & 1) != 0)
         {
             return(true);
         }
     }
     return(false);
 }