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 RelationTypes : object
Fields
View SourceRelatedDocumentAlias
Alias for default relation type "Related Document"
Declaration
public const string RelatedDocumentAlias = null
Field Value
Type | Description |
---|---|
System.String |
RelatedDocumentName
Name for default relation type "Related Document".
Declaration
public const string RelatedDocumentName = null
Field Value
Type | Description |
---|---|
System.String |
RelatedMediaAlias
Alias for default relation type "Related Media"
Declaration
public const string RelatedMediaAlias = null
Field Value
Type | Description |
---|---|
System.String |
RelatedMediaName
Name for default relation type "Related Media".
Declaration
public const string RelatedMediaName = null
Field Value
Type | Description |
---|---|
System.String |
RelateDocumentOnCopyAlias
Alias for default relation type "Relate Document On Copy".
Declaration
public const string RelateDocumentOnCopyAlias = null
Field Value
Type | Description |
---|---|
System.String |
RelateDocumentOnCopyName
Name for default relation type "Relate Document On Copy".
Declaration
public const string RelateDocumentOnCopyName = null
Field Value
Type | Description |
---|---|
System.String |
RelateParentDocumentOnDeleteAlias
Alias for default relation type "Relate Parent Document On Delete".
Declaration
public const string RelateParentDocumentOnDeleteAlias = null
Field Value
Type | Description |
---|---|
System.String |
RelateParentDocumentOnDeleteName
Name for default relation type "Relate Parent Document On Delete".
Declaration
public const string RelateParentDocumentOnDeleteName = null
Field Value
Type | Description |
---|---|
System.String |
RelateParentMediaFolderOnDeleteAlias
Alias for default relation type "Relate Parent Media Folder On Delete".
Declaration
public const string RelateParentMediaFolderOnDeleteAlias = null
Field Value
Type | Description |
---|---|
System.String |
RelateParentMediaFolderOnDeleteName
Name for default relation type "Relate Parent Media Folder On Delete".
Declaration
public const string RelateParentMediaFolderOnDeleteName = null
Field Value
Type | Description |
---|---|
System.String |
Properties
View SourceAutomaticRelationTypes
Returns the types of relations that are automatically tracked
Declaration
public static string[] AutomaticRelationTypes { get; }
Property Value
Type | Description |
---|---|
System.String[] |
Remarks
Developers should not manually use these relation types since they will all be cleared whenever an entity (content, media or member) is saved since they are auto-populated based on property values.