ValidationHelperGetSafeInteger Method |
Returns the integer representation of an object or default value if not.
Consumes all exceptions.
Namespace: CMS.HelpersAssembly: CMS.Helpers (in CMS.Helpers.dll) Version: 11.0.0
Syntax public static int GetSafeInteger(
Object value,
int defaultValue
)
Parameters
- value
- Type: SystemObject
Value to convert - defaultValue
- Type: SystemInt32
Default value
Return Value
Type:
Int32See Also