C# Class Felinesoft.UmbracoCodeFirst.Attributes.MediaTypeAttribute

Inheritance: ContentTypeAttribute, IInitialisableAttribute
ファイルを表示 Open project: DanMannMann/UmbracoCodeFirst Class Usage Examples

Public Methods

Method Description
Initialise ( Type decoratedType ) : void

Initialises the Factory property based on the type to which the attribute is applied.

MediaTypeAttribute ( string mediaTypeName = null, string mediaTypeAlias = null, Type allowedChildren = null, string icon = BuiltInIcons.IconDocument, bool allowAtRoot = false, bool enableListView = false, string description = "", UmbracoIconColor iconColor = UmbracoIconColor.Black ) : System

Specifies that a class should be used as a media type by UmbracoCodeFirst.

Method Details

Initialise() public method

Initialises the Factory property based on the type to which the attribute is applied.
public Initialise ( Type decoratedType ) : void
decoratedType System.Type The type to which the attribute is applied
return void

MediaTypeAttribute() public method

Specifies that a class should be used as a media type by UmbracoCodeFirst.
public MediaTypeAttribute ( string mediaTypeName = null, string mediaTypeAlias = null, Type allowedChildren = null, string icon = BuiltInIcons.IconDocument, bool allowAtRoot = false, bool enableListView = false, string description = "", UmbracoIconColor iconColor = UmbracoIconColor.Black ) : System
mediaTypeName string The name of the media type
mediaTypeAlias string The alias of the media type
allowedChildren System.Type 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