Method | Description | |
---|---|---|
Initialise ( |
Initialises the Factory property based on the type to which the attribute is applied.
|
|
MediaTypeAttribute ( string mediaTypeName = null, string mediaTypeAlias = null, |
Specifies that a class should be used as a media type by UmbracoCodeFirst.
|
public Initialise ( |
||
decoratedType | The type to which the attribute is applied | |
return | void |
public MediaTypeAttribute ( string mediaTypeName = null, string mediaTypeAlias = null, |
||
mediaTypeName | string | The name of the media type |
mediaTypeAlias | string | The alias of the media type |
allowedChildren | An array of code-first media types which are valid children of this media type | |
icon | string | The icon to display in the content tree (see UmbracoCodeFirst.BuiltInIcons for constants representing Umbraco's default icon set) |
allowAtRoot | bool | True to allow this type of media to be created at the root of the content tree |
enableListView | bool | True to enable list view for this media type |
description | string | The Description of the media type |
iconColor | UmbracoIconColor | |
return | System |