|   | DataObjectVersionGetSinglePropertyValueT Method (String, T) | 
 
            Returns a single value for a property or a fixed field.
            Not all fixed fields are supported - please refer to the PropertyValuesContainer class for details.
            
 
    Namespace: 
   Omada.OE.Model
    Assembly:
   Omada.OE.Model (in Omada.OE.Model.dll) Version: 15.0.0.0
Syntaxpublic virtual T GetSinglePropertyValue<T>(
	string property,
	T defaultValue
)
where T : Object, IEquatable<T>
Parameters
- property
 - Type: SystemString
            System name of a property or name of a fixed field.
             - defaultValue
 - Type: T
 
Type Parameters
- T
 - 
            The data type of the value depends on the property type and data type:
            Value property - Text: string
            Value property - Integer: int 
            Value property - DateTime: DateTime
            Value property - Decimal: double
            Value property - Boolean: bool
            Value property - Hyperlink: string
            Value property - TimeSpan: TimeSpan
            Value property - MultiLangText: string
            Value property - Xml: string
            Set property: int
            Reference property: int
            
            Fixed fields: (other are supported besides these - please refer to the PropertyValuesContainer class for details)
            CreateTime: DateTime
            ChangeTime: DateTime
            CreatedBy: int
            Number: int
            Type: int
            Id: int
            DisplayName: string
            
 
Return Value
Type: 
T
            Returns a single value for the property or fixed field.
            If the property/field doesn't exist or the data object has no value for it then defaultValue is returned.
            
See Also