Table of Contents

Class BooleanProperty

Namespace
TimeCockpit.Data.DataModel
Assembly
TimeCockpit.Data.dll

Represents a property of type bool in the Time Cockpit data model.

[DataType(typeof(bool))]
[Column(typeof(bool))]
[DefaultValue(false)]
[FriendlyTypeName("Boolean")]
public class BooleanProperty : PersistedProperty, IDynamicMetaObjectProvider, INotifyPropertyChanged, IDataErrorInfo, INullable
Inheritance
Object
BooleanProperty
Implements
IDynamicMetaObjectProvider
INotifyPropertyChanged
IDataErrorInfo
Inherited Members
Object.ToString()
Object.Equals(Object)
Object.Equals(Object, Object)
Object.ReferenceEquals(Object, Object)
Object.GetHashCode()
Object.GetType()
Object.MemberwiseClone()

Constructors

BooleanProperty()

Initializes a new instance of the BooleanProperty class.

public BooleanProperty()

BooleanProperty(IEnumerable<KeyValuePair<Object, Object>>)

Initializes a new instance of the BooleanProperty class.

public BooleanProperty(IEnumerable<KeyValuePair<object, object>> properties)

Parameters

properties IEnumerable<KeyValuePair<Object, Object>>

Collection of properties.

BooleanProperty(BooleanProperty)

Initializes a new instance of the BooleanProperty class.

public BooleanProperty(BooleanProperty element)

Parameters

element BooleanProperty

The element.

Properties

ClrDefaultValue

Gets the default valud for the datatype for the property.

public override object ClrDefaultValue { get; }

Property Value

Object

DataType

Gets the datatype for the property.

public override Type DataType { get; }

Property Value

Type

Methods

Convert(Object)

Converts an object to the type of the property.

public override object Convert(object value)

Parameters

value Object

Object to convert.

Returns

Object

Returns the converted object.

ValidateValue(Object, out String)

Validates that the value is of type System.Boolean or null, if the property is null-able.

public override bool ValidateValue(object value, out string errorMessage)

Parameters

value Object

The value to validate.

errorMessage String

The resulting error message, or null if there is none.

Returns

Boolean

Returns true if the value is valid, false otherwise.