Class ItemResponseModelBase
Serves as the base response model for items in the Umbraco CMS Management API.
Inheritance
object
Namespace: Umbraco.Cms.Api.Management.ViewModels.Item
Assembly: Umbraco.Cms.Api.Management.dll
Syntax
public abstract class ItemResponseModelBase : IHasFlags
Constructors
View SourceItemResponseModelBase()
Declaration
protected ItemResponseModelBase()
Properties
View SourceFlags
Gets or sets the collection of flags associated with the item.
Declaration
public IEnumerable<FlagModel> Flags { get; set; }
Property Value
| Type | Description |
|---|---|
| IEnumerable<FlagModel> |
Id
Gets or sets the unique identifier of the item.
Declaration
public Guid Id { get; set; }
Property Value
| Type | Description |
|---|---|
| Guid |
Methods
View SourceAddFlag(string)
Adds a flag with the specified alias to the item.
Declaration
public void AddFlag(string alias)
Parameters
| Type | Name | Description |
|---|---|---|
| string | alias | The alias of the flag to add. |
RemoveFlag(string)
Removes a flag identified by the specified alias.
Declaration
public void RemoveFlag(string alias)
Parameters
| Type | Name | Description |
|---|---|---|
| string | alias | The alias of the flag to remove. |