C# Class Felinesoft.UmbracoCodeFirst.Attributes.MediaPickerPropertyAttribute

Inheritance: ContentPropertyAttribute, IDataTypeRedirect, IInitialisablePropertyAttribute
Afficher le fichier Open project: DanMannMann/UmbracoCodeFirst

Méthodes publiques

Méthode 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 méthode

public GetOriginalDataTypeObject ( object redirectedValue ) : object
redirectedValue object
Résultat object

GetRedirectedValue() public méthode

public GetRedirectedValue ( object originalDataTypeObject ) : object
originalDataTypeObject object
Résultat object

Initialise() public méthode

public Initialise ( PropertyInfo propertyTarget ) : void
propertyTarget System.Reflection.PropertyInfo
Résultat void

MediaPickerPropertyAttribute() public méthode

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. ///
Résultat System

Redirect() public méthode

public Redirect ( PropertyInfo property ) : Type
property System.Reflection.PropertyInfo
Résultat System.Type