Class BlockItemVariation
Represents a block item variation for culture and segment.
Inheritance
object
Namespace: Umbraco.Cms.Core.Models.Blocks
Assembly: Umbraco.Core.dll
Syntax
public class BlockItemVariation
Constructors
View SourceBlockItemVariation()
Initializes a new instance of the BlockItemVariation class.
Declaration
public BlockItemVariation()
BlockItemVariation(Guid, string?, string?)
Initializes a new instance of the BlockItemVariation class.
Declaration
public BlockItemVariation(Guid contentKey, string? culture, string? segment)
Parameters
| Type | Name | Description |
|---|---|---|
| Guid | contentKey | The content key. |
| string | culture | The culture. |
| string | segment | The segment. |
Properties
View SourceContentKey
Gets or sets the content key.
Declaration
public Guid ContentKey { get; set; }
Property Value
| Type | Description |
|---|---|
| Guid | The content key. |
Culture
Gets or sets the culture.
Declaration
public string? Culture { get; set; }
Property Value
| Type | Description |
|---|---|
| string | The culture. |
Segment
Gets or sets the segment.
Declaration
public string? Segment { get; set; }
Property Value
| Type | Description |
|---|---|
| string | The segment. |