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

Наследование: ContentTypeAttribute, IInitialisableAttribute
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
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.

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

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

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
Результат void

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

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
Результат System