C# 클래스 Felinesoft.UmbracoCodeFirst.Attributes.MemberTypeAttribute

상속: ContentTypeAttribute, IInitialisableAttribute
파일 보기 프로젝트 열기: DanMannMann/UmbracoCodeFirst 1 사용 예제들

공개 메소드들

메소드 설명
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.

메소드 상세

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

MemberTypeAttribute() 공개 메소드

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
리턴 System

MemberTypeAttribute() 공개 메소드

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
리턴 System