C# Class Felinesoft.UmbracoCodeFirst.Attributes.MediaPickerPropertyAttribute

Inheritance: ContentPropertyAttribute, IDataTypeRedirect, IInitialisablePropertyAttribute
Datei anzeigen Open project: DanMannMann/UmbracoCodeFirst

Public Methods

Method Description
GetOriginalDataTypeObject ( object redirectedValue ) : object
GetRedirectedValue ( object originalDataTypeObject ) : object
Initialise ( PropertyInfo propertyTarget ) : void
MediaPickerPropertyAttribute ( string name = null, string alias = null, bool mandatory = false, string description = "", int sortOrder, bool addTabAliasToPropertyAlias = true, string dataType = null ) : System

Specifies that a property should be used as a document property on a document type and that the SingleMediaPicker should be used in Umbraco to choose the value for this property. Any properties which are not set will be inferred from the property metadata and the data type metadata if possible.

Redirect ( PropertyInfo property ) : Type

Method Details

GetOriginalDataTypeObject() public method

public GetOriginalDataTypeObject ( object redirectedValue ) : object
redirectedValue object
return object

GetRedirectedValue() public method

public GetRedirectedValue ( object originalDataTypeObject ) : object
originalDataTypeObject object
return object

Initialise() public method

public Initialise ( PropertyInfo propertyTarget ) : void
propertyTarget System.Reflection.PropertyInfo
return void

MediaPickerPropertyAttribute() public method

Specifies that a property should be used as a document property on a document type and that the SingleMediaPicker should be used in Umbraco to choose the value for this property. Any properties which are not set will be inferred from the property metadata and the data type metadata if possible.
public MediaPickerPropertyAttribute ( string name = null, string alias = null, bool mandatory = false, string description = "", int sortOrder, bool addTabAliasToPropertyAlias = true, string dataType = null ) : System
name string Friendly name of the property
alias string Alias of the property
mandatory bool if set to true [mandatory].
description string The description.
sortOrder int The sort order.
addTabAliasToPropertyAlias bool if set to true add's the tab's alias as a suffix to the property alias.
dataType string /// The name of the data type to use for this property. /// This property is ignored if the property type is a code-first data type. It should be used /// when the property type matches the output type of the relevant property editor value converter. /// The specified data type must already exist in Umbraco, it will not be created or updated when /// specified using this value. ///
return System

Redirect() public method

public Redirect ( PropertyInfo property ) : Type
property System.Reflection.PropertyInfo
return System.Type