Interface ISectionService
Namespace:System.Dynamic.ExpandoObject
Assembly:Umbraco.Core.dll
Syntax
public interface ISectionService
Methods
DeleteSection(Section)
Deletes the section
Declaration
void DeleteSection(Section section)
Parameters
Type | Name | Description |
---|---|---|
Section | section |
GetAllowedSections(Int32)
Get the user group's allowed sections
Declaration
IEnumerable<Section> GetAllowedSections(int userId)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | userId |
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<Section> |
GetByAlias(String)
Gets the application by its alias.
Declaration
Section GetByAlias(string appAlias)
Parameters
Type | Name | Description |
---|---|---|
System.String | appAlias | The application alias. |
Returns
Type | Description |
---|---|
Section |
GetSections()
The cache storage for all applications
Declaration
IEnumerable<Section> GetSections()
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<Section> |
Initialize(IEnumerable<Section>)
Initializes the service with all available application plugins
Declaration
void Initialize(IEnumerable<Section> allAvailableSections)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IEnumerable<Section> | allAvailableSections | All application plugins found in assemblies |
Remarks
This is used to populate the app.config file with any applications declared in plugins that don't exist in the file
MakeNew(String, String, String)
Creates a new applcation if no application with the specified alias is found.
Declaration
void MakeNew(string name, string alias, string icon)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | The application name. |
System.String | alias | The application alias. |
System.String | icon | The application icon, which has to be located in umbraco/images/tray folder. |
MakeNew(String, String, String, Int32)
Makes the new.
Declaration
void MakeNew(string name, string alias, string icon, int sortOrder)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | The name. |
System.String | alias | The alias. |
System.String | icon | The icon. |
System.Int32 | sortOrder | The sort order. |