C# Class N2.DefinitionAttribute

Inheritance: N2.Definitions.AbstractDefinition
显示文件 Open project: n2cms/n2cms

Public Methods

Method Description
DefinitionAttribute ( ) : System
DefinitionAttribute ( string title ) : System

Initializes a new instance of ItemAttribute class.

DefinitionAttribute ( string title, string name ) : System

Initializes a new instance of ItemAttribute class.

DefinitionAttribute ( string title, string name, string description, string toolTip, int sortOrder ) : System

Initializes a new instance of ItemAttribute class.

Refine ( ItemDefinition definition ) : void

Updates the item definition with the attribute.

Method Details

DefinitionAttribute() public method

public DefinitionAttribute ( ) : System
return System

DefinitionAttribute() public method

Initializes a new instance of ItemAttribute class.
public DefinitionAttribute ( string title ) : System
title string The title used when presenting this item type to editors.
return System

DefinitionAttribute() public method

Initializes a new instance of ItemAttribute class.
public DefinitionAttribute ( string title, string name ) : System
title string The title used when presenting this item type to editors.
name string /// The name/discriminator needed to map the appropriate type with content data when retrieving from /// persistence. When this is null the type's full name is used. ///
return System

DefinitionAttribute() public method

Initializes a new instance of ItemAttribute class.
public DefinitionAttribute ( string title, string name, string description, string toolTip, int sortOrder ) : System
title string The title used when presenting this item type to editors.
name string /// The name/discriminator needed to map the appropriate type with content data when retrieving from /// persistence. When this is null the type's name is used. ///
description string The description of this item.
toolTip string The tool tip displayed when hovering over this item type.
sortOrder int The order of this type compared to other items types.
return System

Refine() public method

Updates the item definition with the attribute.
public Refine ( ItemDefinition definition ) : void
definition ItemDefinition
return void