Sitecore.Sharedsource.Tasks.TemplateConfiguration.TemplateConfiguration C# (CSharp) Method

TemplateConfiguration() private method

Initializes a new instance of the TemplateConfiguration class.
private TemplateConfiguration ( Database database, string template, string dateField, string yearTemplate, string monthTemplate, string dayTemplate, SortOrder sort = SortOrder.None, string yearFormat = "yyyy", string monthFormat = "MM", string dayFormat = "dd", string roots = "" ) : System
database Database The database.
template string The template.
dateField string The date field.
yearTemplate string The year template.
monthTemplate string The month template.
dayTemplate string The day template.
sort SortOrder The sort.
yearFormat string The year format.
monthFormat string The month format.
dayFormat string The day format.
roots string
return System
        internal TemplateConfiguration(Database database, string template, string dateField, string yearTemplate, string monthTemplate, string dayTemplate, SortOrder sort = SortOrder.None, string yearFormat = "yyyy", string monthFormat = "MM", string dayFormat = "dd", string roots="")
        {
            Sitecore.Diagnostics.Assert.IsNotNull(database, "Database");
            Sitecore.Diagnostics.Assert.IsNotNullOrEmpty(template, "Template");
            Sitecore.Diagnostics.Assert.IsNotNullOrEmpty(dateField, "DateField");
            Sitecore.Diagnostics.Assert.IsNotNullOrEmpty(yearTemplate, "YearTemplate");

            _database = database;
            _template = template;
            _yearTemplate = yearTemplate;
            _monthTemplate = monthTemplate;
            _dayTemplate = dayTemplate;
            _yearFormat = yearFormat;
            _monthFormat = monthFormat;
            _dayFormat = dayFormat;
            _roots=roots;
            DateField = dateField;
            SortOrder = sort;
            CreateRoots();
            CreateFolders();
        }