Class ContentTypeCacheRefresher.JsonPayload
Represents the JSON payload for content type cache refresh operations.
Inheritance
Namespace: Umbraco.Cms.Core.Cache
Assembly: Umbraco.Core.dll
Syntax
public class ContentTypeCacheRefresher.JsonPayload
Constructors
View SourceJsonPayload(string, int, ContentTypeChangeTypes)
Initializes a new instance of the ContentTypeCacheRefresher.JsonPayload class.
Declaration
public JsonPayload(string itemType, int id, ContentTypeChangeTypes changeTypes)
Parameters
| Type | Name | Description |
|---|---|---|
| string | itemType | The type name of the content type. |
| int | id | The identifier of the content type. |
| ContentTypeChangeTypes | changeTypes | The types of changes that occurred. |
JsonPayload(string, int, ContentTypeChangeTypes, bool)
Initializes a new instance of the ContentTypeCacheRefresher.JsonPayload class.
Declaration
[JsonConstructor]
public JsonPayload(string itemType, int id, ContentTypeChangeTypes changeTypes, bool isElement)
Parameters
| Type | Name | Description |
|---|---|---|
| string | itemType | The type name of the content type. |
| int | id | The identifier of the content type. |
| ContentTypeChangeTypes | changeTypes | The types of changes that occurred. |
| bool | isElement | Whether the content type is an Element type. Only meaningful when |
Properties
View SourceChangeTypes
Gets the types of changes that occurred.
Declaration
public ContentTypeChangeTypes ChangeTypes { get; }
Property Value
| Type | Description |
|---|---|
| ContentTypeChangeTypes |
Id
Gets the identifier of the content type.
Declaration
public int Id { get; }
Property Value
| Type | Description |
|---|---|
| int |
IsElement
Gets a value indicating whether the content type is an Element type. Only meaningful when ItemType is IContentType.
Declaration
public bool IsElement { get; }
Property Value
| Type | Description |
|---|---|
| bool |
ItemType
Gets the type name of the content type (e.g., IContentType, IMediaType, IMemberType).
Declaration
public string ItemType { get; }
Property Value
| Type | Description |
|---|---|
| string |