Interface IStylesheetService
Namespace: Umbraco.Cms.Core.Services
Assembly: Umbraco.Core.dll
Syntax
public interface IStylesheetService : IBasicFileService<IStylesheet>
Methods
View SourceCreateAsync(StylesheetCreateModel, Guid)
Creates a new stylesheet.
Declaration
Task<Attempt<IStylesheet, StylesheetOperationStatus>> CreateAsync(StylesheetCreateModel createModel, Guid userKey)
Parameters
Type | Name | Description |
---|---|---|
Stylesheet |
createModel | Stylesheet |
Guid | userKey | The key of the user performing the operation. |
Returns
Type | Description |
---|---|
Task<Attempt<IStylesheet, Stylesheet |
An attempt indicating if the operation was a success as well as a more detailed Stylesheet |
DeleteAsync(String, Guid)
Deletes a stylesheet.
Declaration
Task<StylesheetOperationStatus> DeleteAsync(string path, Guid userKey)
Parameters
Type | Name | Description |
---|---|---|
System. |
path | The path of the stylesheet to delete. |
Guid | userKey | The key of the user performing the operation. |
Returns
Type | Description |
---|---|
Task<Stylesheet |
An operation status. |
RenameAsync(String, StylesheetRenameModel, Guid)
Renames a stylesheet.
Declaration
Task<Attempt<IStylesheet, StylesheetOperationStatus>> RenameAsync(string path, StylesheetRenameModel renameModel, Guid userKey)
Parameters
Type | Name | Description |
---|---|---|
System. |
path | The path of the stylesheet to rename. |
Stylesheet |
renameModel | A Stylesheet |
Guid | userKey | The key of the user performing the operation. |
Returns
Type | Description |
---|---|
Task<Attempt<IStylesheet, Stylesheet |
An attempt indicating if the operation was a success as well as a more detailed Stylesheet |
UpdateAsync(String, StylesheetUpdateModel, Guid)
Updates an existing stylesheet.
Declaration
Task<Attempt<IStylesheet, StylesheetOperationStatus>> UpdateAsync(string path, StylesheetUpdateModel updateModel, Guid userKey)
Parameters
Type | Name | Description |
---|---|---|
System. |
path | The path of the stylesheet to update. |
Stylesheet |
updateModel | A Stylesheet |
Guid | userKey | The key of the user performing the operation. |
Returns
Type | Description |
---|---|
Task<Attempt<IStylesheet, Stylesheet |
An attempt indicating if the operation was a success as well as a more detailed Stylesheet |