C# 클래스 Felinesoft.UmbracoCodeFirst.Attributes.ContentFactoryAttribute

상속: System.Attribute
파일 보기 프로젝트 열기: DanMannMann/UmbracoCodeFirst

공개 메소드들

메소드 설명
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