C# Class Felinesoft.UmbracoCodeFirst.Attributes.MemberTypeAttribute

Inheritance: ContentTypeAttribute, IInitialisableAttribute
Exibir arquivo 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.

MemberTypeAttribute ( string memberTypeName, string memberTypeAlias, object allowedChildren, string icon, bool allowAtRoot, bool enableListView, string description, UmbracoIconColor iconColor = UmbracoIconColor.Black ) : System

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

THIS CTR is included for compatability with the output of the T4 generators, as it has the same signature as the other content attribute types. It should not be used. Use the overload with 5 parameters for human-written code.

MemberTypeAttribute ( string memberTypeName = null, string memberTypeAlias = null, string icon = BuiltInIcons.IconDocument, string description = "", UmbracoIconColor iconColor = UmbracoIconColor.Black ) : System

Specifies that a class should be used as a member 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

MemberTypeAttribute() public method

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

THIS CTR is included for compatability with the output of the T4 generators, as it has the same signature as the other content attribute types. It should not be used. Use the overload with 5 parameters for human-written code.

public MemberTypeAttribute ( string memberTypeName, string memberTypeAlias, object allowedChildren, string icon, bool allowAtRoot, bool enableListView, string description, UmbracoIconColor iconColor = UmbracoIconColor.Black ) : System
memberTypeName string The name of the member type
memberTypeAlias string The alias of the member type
allowedChildren object Should always be null - no inheritance in member types.
icon string The icon to display in the content tree (see UmbracoCodeFirst.BuiltInIcons for constants representing Umbraco's default icon set)
allowAtRoot bool Should always be false - no folders in members tree
enableListView bool Should always be false - no folder structure in members tree
description string The Description of the member type
iconColor UmbracoIconColor The icon color to show in the tree
return System

MemberTypeAttribute() public method

Specifies that a class should be used as a member type by UmbracoCodeFirst.
public MemberTypeAttribute ( string memberTypeName = null, string memberTypeAlias = null, string icon = BuiltInIcons.IconDocument, string description = "", UmbracoIconColor iconColor = UmbracoIconColor.Black ) : System
memberTypeName string The name of the member type
memberTypeAlias string The alias of the member type
icon string The icon to display in the content tree (see UmbracoCodeFirst.BuiltInIcons for constants representing Umbraco's default icon set)
description string The Description of the member type
iconColor UmbracoIconColor The icon color to show in the tree
return System