| PropertyValuesContainerGetSingleValueT Method (Int32, T) |
Returns a single value for a property (fixed fields are not supported by this method).
Namespace:
Omada.OE.Model
Assembly:
Omada.OE.Model (in Omada.OE.Model.dll) Version: 15.0.0.0
Syntaxpublic T GetSingleValue<T>(
int propertyId,
T defaultValue
)
where T : Object, IEquatable<T>
Parameters
- propertyId
- Type: SystemInt32
Id of a property.
- 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
Return Value
Type:
T
Returns a single value for the property.
If the property doesn't exist or the container has no value for it then defaultValue is returned.
See Also