Class Constants.Conventions.RelationTypes
Defines the alias identifiers for built-in Umbraco relation types.
Inheritance
Namespace: Umbraco.Cms.Core
Assembly: Umbraco.Core.dll
Syntax
public static class Constants.Conventions.RelationTypes
Fields
View SourceRelateDocumentOnCopyAlias
Alias for default relation type "Relate Document On Copy".
Declaration
public const string RelateDocumentOnCopyAlias = "relateDocumentOnCopy"
Field Value
| Type | Description |
|---|---|
| string |
RelateDocumentOnCopyName
Name for default relation type "Relate Document On Copy".
Declaration
public const string RelateDocumentOnCopyName = "Relate Document On Copy"
Field Value
| Type | Description |
|---|---|
| string |
RelateParentDocumentOnDeleteAlias
Alias for default relation type "Relate Parent Document On Delete".
Declaration
public const string RelateParentDocumentOnDeleteAlias = "relateParentDocumentOnDelete"
Field Value
| Type | Description |
|---|---|
| string |
RelateParentDocumentOnDeleteName
Name for default relation type "Relate Parent Document On Delete".
Declaration
public const string RelateParentDocumentOnDeleteName = "Relate Parent Document On Delete"
Field Value
| Type | Description |
|---|---|
| string |
RelateParentElementContainerOnContainerDeleteAlias
Alias for default relation type "Relate Parent Element Container On Container Delete".
Declaration
public const string RelateParentElementContainerOnContainerDeleteAlias = "relateParentElementContainerOnContainerDelete"
Field Value
| Type | Description |
|---|---|
| string |
RelateParentElementContainerOnContainerDeleteName
Name for default relation type "Relate Parent Element Container On Container Delete".
Declaration
public const string RelateParentElementContainerOnContainerDeleteName = "Relate Parent Element Container On Container Delete"
Field Value
| Type | Description |
|---|---|
| string |
RelateParentElementContainerOnElementDeleteAlias
Alias for default relation type "Relate Parent Element Container On Element Delete".
Declaration
public const string RelateParentElementContainerOnElementDeleteAlias = "relateParentElementContainerOnElementDelete"
Field Value
| Type | Description |
|---|---|
| string |
RelateParentElementContainerOnElementDeleteName
Name for default relation type "Relate Parent Element Container On Element Delete".
Declaration
public const string RelateParentElementContainerOnElementDeleteName = "Relate Parent Element Container On Element Delete"
Field Value
| Type | Description |
|---|---|
| string |
RelateParentMediaFolderOnDeleteAlias
Alias for default relation type "Relate Parent Media Folder On Delete".
Declaration
public const string RelateParentMediaFolderOnDeleteAlias = "relateParentMediaFolderOnDelete"
Field Value
| Type | Description |
|---|---|
| string |
RelateParentMediaFolderOnDeleteName
Name for default relation type "Relate Parent Media Folder On Delete".
Declaration
public const string RelateParentMediaFolderOnDeleteName = "Relate Parent Media Folder On Delete"
Field Value
| Type | Description |
|---|---|
| string |
RelatedDocumentAlias
Alias for default relation type "Related Document".
Declaration
public const string RelatedDocumentAlias = "umbDocument"
Field Value
| Type | Description |
|---|---|
| string |
RelatedDocumentName
Name for default relation type "Related Document".
Declaration
public const string RelatedDocumentName = "Related Document"
Field Value
| Type | Description |
|---|---|
| string |
RelatedElementAlias
Alias for default relation type "Related Element".
Declaration
public const string RelatedElementAlias = "umbElement"
Field Value
| Type | Description |
|---|---|
| string |
RelatedElementName
Name for default relation type "Related Element".
Declaration
public const string RelatedElementName = "Related Element"
Field Value
| Type | Description |
|---|---|
| string |
RelatedMediaAlias
Alias for default relation type "Related Media".
Declaration
public const string RelatedMediaAlias = "umbMedia"
Field Value
| Type | Description |
|---|---|
| string |
RelatedMediaName
Name for default relation type "Related Media".
Declaration
public const string RelatedMediaName = "Related Media"
Field Value
| Type | Description |
|---|---|
| string |
RelatedMemberAlias
Alias for default relation type "Related Member".
Declaration
public const string RelatedMemberAlias = "umbMember"
Field Value
| Type | Description |
|---|---|
| string |
RelatedMemberName
Name for default relation type "Related Member".
Declaration
public const string RelatedMemberName = "Related Member"
Field Value
| Type | Description |
|---|---|
| string |
Properties
View SourceAutomaticRelationTypes
Returns the types of relations that are automatically tracked.
Declaration
public static string[] AutomaticRelationTypes { get; }
Property Value
| Type | Description |
|---|---|
| string[] |
Remarks
Developers should not manually use these relation types since they will all be cleared whenever an entity (content, media, member or element) is saved since they are auto-populated based on property values.