Méthode | Description | |
---|---|---|
Initialise ( |
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.
|
public Initialise ( |
||
decoratedType | The type to which the attribute is applied | |
Résultat | void |
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 |
Résultat | System |
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 |
Résultat | System |