• Core
  • Infrastructure
  • Web
  • Extensions
Search Results for

    Show / Hide Table of Contents
    View Source

    Class TemplateSavingNotification

    A notification that is used to trigger the IFileService when the SaveTemplate method is called in the API.

    Inheritance
    System.Object
    StatefulNotification
    ObjectNotification<IEnumerable<ITemplate>>
    CancelableObjectNotification<IEnumerable<ITemplate>>
    CancelableEnumerableObjectNotification<ITemplate>
    SavingNotification<ITemplate>
    Namespace: Umbraco.Cms.Core.Notifications
    Assembly: Umbraco.Core.dll
    Syntax
    public class TemplateSavingNotification : SavingNotification<ITemplate>, IStatefulNotification, ICancelableNotification, INotification

    Constructors

    View Source

    TemplateSavingNotification(IEnumerable<ITemplate>, EventMessages)

    Declaration
    public TemplateSavingNotification(IEnumerable<ITemplate> target, EventMessages messages)
    Parameters
    Type Name Description
    IEnumerable<ITemplate> target
    EventMessages messages
    View Source

    TemplateSavingNotification(IEnumerable<ITemplate>, EventMessages, Boolean, String)

    Initializes a new instance of the TemplateSavingNotification

    Declaration
    public TemplateSavingNotification(IEnumerable<ITemplate> target, EventMessages messages, bool createTemplateForContentType, string contentTypeAlias)
    Parameters
    Type Name Description
    IEnumerable<ITemplate> target

    Gets a enumeration of the ITemplate.

    EventMessages messages

    Initializes a new instance of the EventMessages.

    System.Boolean createTemplateForContentType

    Boolean value determining if the template is created for a Document Type. It's not recommended to change this value.

    System.String contentTypeAlias

    This is the alias of the ContentType the template is for. This is used when creating a Document Type with Template. It's not recommended to try and change or set this.

    View Source

    TemplateSavingNotification(ITemplate, EventMessages)

    Declaration
    public TemplateSavingNotification(ITemplate target, EventMessages messages)
    Parameters
    Type Name Description
    ITemplate target
    EventMessages messages
    View Source

    TemplateSavingNotification(ITemplate, EventMessages, Boolean, String)

    Initializes a new instance of the TemplateSavingNotification

    Declaration
    public TemplateSavingNotification(ITemplate target, EventMessages messages, bool createTemplateForContentType, string contentTypeAlias)
    Parameters
    Type Name Description
    ITemplate target

    Initializes a new instance of the ITemplate.

    EventMessages messages

    Initializes a new instance of the EventMessages.

    System.Boolean createTemplateForContentType

    Boolean value determining if the template is created for a Document Type. It's not recommended to change this value.

    System.String contentTypeAlias

    This is the alias of the ContentType the template is for. This is used when creating a Document Type with Template. It's not recommended to try and change or set this.

    Properties

    View Source

    ContentTypeAlias

    Declaration
    public string ContentTypeAlias { get; set; }
    Property Value
    Type Description
    System.String
    View Source

    CreateTemplateForContentType

    Declaration
    public bool CreateTemplateForContentType { get; set; }
    Property Value
    Type Description
    System.Boolean
    • Improve this Doc
    • View Source
    In This Article
    • Constructors
      • TemplateSavingNotification(IEnumerable<ITemplate>, EventMessages)
      • TemplateSavingNotification(IEnumerable<ITemplate>, EventMessages, Boolean, String)
      • TemplateSavingNotification(ITemplate, EventMessages)
      • TemplateSavingNotification(ITemplate, EventMessages, Boolean, String)
    • Properties
      • ContentTypeAlias
      • CreateTemplateForContentType
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX