C# 클래스 Felinesoft.UmbracoCodeFirst.DataTypes.SingleSelectDataType

A base class for data types which select a single value from a list of prevalues
This works with editors which store the actual string value as the property value. Editors which store the prevalue ID are not supported and in this case one should override Serialise and Initialise in a derived class to get the actual value based on the ID.
상속: SelectListDataType
파일 보기 프로젝트 열기: DanMannMann/UmbracoCodeFirst

공개 메소드들

메소드 설명
Initialise ( string value ) : void

Initialises the current instance from a string containing a single value

Serialise ( ) : string

Serialises the current instance to a string containing the selected value

ToString ( ) : string

보호된 메소드들

메소드 설명
SetInvalidValue ( string value ) : void

Allows an invalid value to be explicitly set, bypassing the protection in the SelectedValue property setter.

This is equivalent to calling the base implementation of Initialise but, as Initialise is virtual, this method should be preferred as it guarantees the correct behaviour in derived types

메소드 상세

Initialise() 공개 메소드

Initialises the current instance from a string containing a single value
public Initialise ( string value ) : void
value string The serialised value
리턴 void

Serialise() 공개 메소드

Serialises the current instance to a string containing the selected value
public Serialise ( ) : string
리턴 string

SetInvalidValue() 보호된 메소드

Allows an invalid value to be explicitly set, bypassing the protection in the SelectedValue property setter.
This is equivalent to calling the base implementation of Initialise but, as Initialise is virtual, this method should be preferred as it guarantees the correct behaviour in derived types
protected SetInvalidValue ( string value ) : void
value string The value to set
리턴 void

ToString() 공개 메소드

public ToString ( ) : string
리턴 string