private void Form1_Load(object sender, EventArgs e)
        {
            Scopes SCScopes = GetScopesForSiteCollection();

            foreach (Scope s in SCScopes.GetSharedScopes())
            {
                DropDownHelper <Scope> dds = new DropDownHelper <Scope>(s.Name, s);
                cbScope.Items.Add(dds);
            }
        }
Beispiel #2
0
        public static void CreateSearchScope(string siteCollection, string ScopeName, string ScopeDesc, string CustSearchPage)
        {
            Scopes SCScopes = GetScopesForSiteCollection(siteCollection);

            foreach (Scope s in SCScopes.GetSharedScopes())
            {
                Debug.WriteLine("Scope: " + s.Name);
                Debug.WriteLine("Last time compiled: " + s.LastCompilationTime.ToShortDateString());
            }

            SCScopes.AllScopes.Create(ScopeName, ScopeDesc, null, true,
                                      CustSearchPage, ScopeCompilationType.AlwaysCompile);
        }