Initializes a new instance of ItemAttribute class.

Namespace:  N2
Assembly:  N2 (in N2.dll) Version: 1.0.404.40299 (1.4.4)

Syntax

C#
public DefinitionAttribute(
	string title,
	string name,
	string description,
	string toolTip,
	int sortOrder
)
Visual Basic (Declaration)
Public Sub New ( _
	title As String, _
	name As String, _
	description As String, _
	toolTip As String, _
	sortOrder As Integer _
)
Visual C++
public:
DefinitionAttribute(
	String^ title, 
	String^ name, 
	String^ description, 
	String^ toolTip, 
	int sortOrder
)

Parameters

title
Type: System..::.String
The title used when presenting this item type to editors.
name
Type: System..::.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
Type: System..::.String
The description of this item.
toolTip
Type: System..::.String
The tool tip displayed when hovering over this item type.
sortOrder
Type: System..::.Int32
The order of this type compared to other items types.

See Also