| DataObjectControllerGetPropertyValue Method (Int32, Int32, String, Int32) |
Returns the value of a Value property with data type 'Text' or 'MultiLangText'.
The method doesn't consider the security model.
The method doesn't consider whether the data object is marked as deleted.
Throws an exception if:
- The data object doesn't exist
- The property doesn't exist or it is not a value property w. data type 'Text' or 'MultiLangText'.
- The property is a log property.
Namespace:
Omada.OE.AppLogic
Assembly:
Omada.OE.AppLogic (in Omada.OE.AppLogic.dll) Version: 15.0.0.0
Syntaxpublic string GetPropertyValue(
int dataObjectId,
int propertyId,
string defaultValue,
int languageId
)
Parameters
- dataObjectId
- Type: SystemInt32
Id of the data object from which the property value must be obtained.
- propertyId
- Type: SystemInt32
Id of the property for which the value must be obtained.
- defaultValue
- Type: SystemString
defaultValue is returned if:
- the data object doesn't have a value for the property.
defaultValue must not be null.
- languageId
- Type: SystemInt32
If the property is a MultiLangText the value is returned for this language.
Must denote a valid language Id.
Return Value
Type:
String
See Also