Exemplo n.º 1
0
        public ScopeInstance Create(string name, string description, UriInstance owningSiteUrl, bool displayInAdminUI, string scopeCompilationType, string alternateResultsPage, string filter)
        {
            ScopeCompilationType type;

            scopeCompilationType.TryParseEnum(true, ScopeCompilationType.AlwaysCompile, out type);

            var result = m_scopeCollection.Create(name, description, owningSiteUrl.Uri, displayInAdminUI, alternateResultsPage, type, filter);

            return(result == null
                ? null
                : new ScopeInstance(Engine, result));
        }