Class RelationItemModel
Represents a model for a relation item, containing node and content type information.
Inheritance
object
Namespace: Umbraco.Cms.Core.Models
Assembly: Umbraco.Core.dll
Syntax
public class RelationItemModel
Constructors
View SourceRelationItemModel()
Declaration
public RelationItemModel()
Properties
View SourceContentTypeAlias
Gets or sets the alias of the content type.
Declaration
public string? ContentTypeAlias { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
ContentTypeIcon
Gets or sets the icon associated with the content type.
Declaration
public string? ContentTypeIcon { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
ContentTypeKey
Gets or sets the unique key of the content type.
Declaration
public Guid ContentTypeKey { get; set; }
Property Value
| Type | Description |
|---|---|
| Guid |
ContentTypeName
Gets or sets the name of the content type.
Declaration
public string? ContentTypeName { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
NodeAlias
Gets or sets the alias of the node.
Declaration
public string? NodeAlias { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
NodeKey
Gets or sets the unique key (GUID) of the node.
Declaration
public Guid NodeKey { get; set; }
Property Value
| Type | Description |
|---|---|
| Guid |
NodeName
Gets or sets the name of the node.
Declaration
public string? NodeName { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
NodePublished
Gets or sets a value indicating whether the node is published.
Declaration
public bool? NodePublished { get; set; }
Property Value
| Type | Description |
|---|---|
| bool? |
NodeType
Gets or sets the type of the node (e.g., document, media).
Declaration
public string? NodeType { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
RelationTypeIsBidirectional
Gets or sets a value indicating whether the relation type is bidirectional.
Declaration
public bool RelationTypeIsBidirectional { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
RelationTypeIsDependency
Gets or sets a value indicating whether the relation type represents a dependency.
Declaration
public bool RelationTypeIsDependency { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
RelationTypeName
Gets or sets the name of the relation type.
Declaration
public string? RelationTypeName { get; set; }
Property Value
| Type | Description |
|---|---|
| string |