Search Results for

    Show / Hide Table of Contents
    View Source

    Class Constants.Conventions.RelationTypes

    Defines the alias identifiers for built-in Umbraco relation types.

    Inheritance
    System.Object
    Namespace: Umbraco.Cms.Core
    Assembly: Umbraco.Core.dll
    Syntax
    public static class RelationTypes

    Fields

    View Source

    RelatedDocumentAlias

    Alias for default relation type "Related Document"

    Declaration
    public const string RelatedDocumentAlias = "umbDocument"
    Field Value
    Type Description
    System.String
    View Source

    RelatedDocumentName

    Name for default relation type "Related Document".

    Declaration
    public const string RelatedDocumentName = "Related Document"
    Field Value
    Type Description
    System.String
    View Source

    RelatedMediaAlias

    Alias for default relation type "Related Media"

    Declaration
    public const string RelatedMediaAlias = "umbMedia"
    Field Value
    Type Description
    System.String
    View Source

    RelatedMediaName

    Name for default relation type "Related Media".

    Declaration
    public const string RelatedMediaName = "Related Media"
    Field Value
    Type Description
    System.String
    View Source

    RelateDocumentOnCopyAlias

    Alias for default relation type "Relate Document On Copy".

    Declaration
    public const string RelateDocumentOnCopyAlias = "relateDocumentOnCopy"
    Field Value
    Type Description
    System.String
    View Source

    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
    View Source

    RelateParentDocumentOnDeleteAlias

    Alias for default relation type "Relate Parent Document On Delete".

    Declaration
    public const string RelateParentDocumentOnDeleteAlias = "relateParentDocumentOnDelete"
    Field Value
    Type Description
    System.String
    View Source

    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
    View Source

    RelateParentMediaFolderOnDeleteAlias

    Alias for default relation type "Relate Parent Media Folder On Delete".

    Declaration
    public const string RelateParentMediaFolderOnDeleteAlias = "relateParentMediaFolderOnDelete"
    Field Value
    Type Description
    System.String
    View Source

    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 Source

    AutomaticRelationTypes

    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.

    • Improve this Doc
    • View Source
    In This Article
    • Fields
      • RelatedDocumentAlias
      • RelatedDocumentName
      • RelatedMediaAlias
      • RelatedMediaName
      • RelateDocumentOnCopyAlias
      • RelateDocumentOnCopyName
      • RelateParentDocumentOnDeleteAlias
      • RelateParentDocumentOnDeleteName
      • RelateParentMediaFolderOnDeleteAlias
      • RelateParentMediaFolderOnDeleteName
    • Properties
      • AutomaticRelationTypes
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX