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 RelationTypesFields
View SourceRelatedDocumentAlias
Alias for default relation type "Related Document"
Declaration
public const string RelatedDocumentAlias = "umbDocument"Field Value
| Type | Description | 
|---|---|
| System.String | 
RelatedDocumentName
Name for default relation type "Related Document".
Declaration
public const string RelatedDocumentName = "Related Document"Field Value
| Type | Description | 
|---|---|
| System.String | 
RelatedMediaAlias
Alias for default relation type "Related Media"
Declaration
public const string RelatedMediaAlias = "umbMedia"Field Value
| Type | Description | 
|---|---|
| System.String | 
RelatedMediaName
Name for default relation type "Related Media".
Declaration
public const string RelatedMediaName = "Related Media"Field Value
| Type | Description | 
|---|---|
| System.String | 
RelateDocumentOnCopyAlias
Alias for default relation type "Relate Document On Copy".
Declaration
public const string RelateDocumentOnCopyAlias = "relateDocumentOnCopy"Field Value
| Type | Description | 
|---|---|
| System.String | 
RelateDocumentOnCopyName
Name for default relation type "Relate Document On Copy".
Declaration
public const string RelateDocumentOnCopyName = "Relate Document On Copy"Field Value
| Type | Description | 
|---|---|
| System.String | 
RelateParentDocumentOnDeleteAlias
Alias for default relation type "Relate Parent Document On Delete".
Declaration
public const string RelateParentDocumentOnDeleteAlias = "relateParentDocumentOnDelete"Field Value
| Type | Description | 
|---|---|
| System.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 | 
|---|---|
| System.String | 
RelateParentMediaFolderOnDeleteAlias
Alias for default relation type "Relate Parent Media Folder On Delete".
Declaration
public const string RelateParentMediaFolderOnDeleteAlias = "relateParentMediaFolderOnDelete"Field Value
| Type | Description | 
|---|---|
| System.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 | 
|---|---|
| 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.