C# Class Felinesoft.UmbracoCodeFirst.Attributes.ContentTabAttribute

Inheritance: CodeFirstAttribute, IInitialisablePropertyAttribute
Exibir arquivo Open project: DanMannMann/UmbracoCodeFirst Class Usage Examples

Public Methods

Method Description
ContentTabAttribute ( string name = null, int sortOrder, string originalName = null, bool preserveOriginalNameFormat = false ) : System

Specifies that a property should be used as a document tab on a document type. Any properties which are not set will be inferred from the property metadata and the data type metadata if possible.

Initialise ( System propertyTarget ) : void

Initialises the attribute properties based on the type to which the attribute is applied.

Method Details

ContentTabAttribute() public method

Specifies that a property should be used as a document tab on a document type. Any properties which are not set will be inferred from the property metadata and the data type metadata if possible.
public ContentTabAttribute ( string name = null, int sortOrder, string originalName = null, bool preserveOriginalNameFormat = false ) : System
name string The name of the tab
sortOrder int The sort order of the tab
originalName string
preserveOriginalNameFormat bool
return System

Initialise() public method

Initialises the attribute properties based on the type to which the attribute is applied.
public Initialise ( System propertyTarget ) : void
propertyTarget System The property to which the attribute is applied
return void