Interface ISegmentService
Namespace: Umbraco.Cms.Core.Services
Assembly: Umbraco.Core.dll
Syntax
public interface ISegmentService
Methods
View SourceGetPagedSegmentsAsync(int, int)
Gets a paged list of segments.
Declaration
Task<Attempt<PagedModel<Segment>?, SegmentOperationStatus>> GetPagedSegmentsAsync(int skip = 0, int take = 100)
Parameters
| Type | Name | Description |
|---|---|---|
| int | skip | The number of items to skip. |
| int | take | The number of items to take. |
Returns
| Type | Description |
|---|---|
| Task<Attempt<PagedModel<Segment>, SegmentOperationStatus>> | The paged list of segments. |
GetPagedSegmentsForDocumentAsync(Guid, int, int)
Gets a paged list of segments for a specific document.
Declaration
[Obsolete("This method is temporary and will be removed in a future release (planned for v20). A more permanent solution will follow.")]
Task<Attempt<PagedModel<Segment>?, SegmentOperationStatus>> GetPagedSegmentsForDocumentAsync(Guid id, int skip = 0, int take = 100)
Parameters
| Type | Name | Description |
|---|---|---|
| Guid | id | The document unique identifier. |
| int | skip | The number of items to skip. |
| int | take | The number of items to take. |
Returns
| Type | Description |
|---|---|
| Task<Attempt<PagedModel<Segment>, SegmentOperationStatus>> | The paged list of segments. |