C# Класс Felinesoft.UmbracoCodeFirst.Attributes.ContentFactoryAttribute

Наследование: System.Attribute
Показать файл Открыть проект

Открытые методы

Метод Описание
ContentFactoryAttribute ( Type factory, int sortOrder = 10 ) : System

Registers a content factory to be used to create default content for a document type

Защищенные методы

Метод Описание
ContentFactoryAttribute ( int sortOrder = 10 ) : System

Inheritors can call this if they want to construct their own factory (useful if your factory type has constructor parameters or other initialisation requirements). The inheritor will need to assign the constructed factory to the ContentFactoryAttribute.Factory property, which has a protected setter for this purpose, within its constructor.

Описание методов

ContentFactoryAttribute() публичный Метод

Registers a content factory to be used to create default content for a document type

public ContentFactoryAttribute ( Type factory, int sortOrder = 10 ) : System
factory System.Type A type with a parameterless constructor which implements IContentFactory
sortOrder int The sort order for the document amongst its' siblings
Результат System

ContentFactoryAttribute() защищенный Метод

Inheritors can call this if they want to construct their own factory (useful if your factory type has constructor parameters or other initialisation requirements). The inheritor will need to assign the constructed factory to the ContentFactoryAttribute.Factory property, which has a protected setter for this purpose, within its constructor.
protected ContentFactoryAttribute ( int sortOrder = 10 ) : System
sortOrder int The sort order for the document amongst its' siblings
Результат System