DataHelperParseXmlValue Method |
Parses given value treated as value from XML, and converts it to given type.
Namespace: CMS.HelpersAssembly: CMS.Helpers (in CMS.Helpers.dll) Version: 13.0.131
Syntax public static Object ParseXmlValue(
string value,
Type type,
string columnName,
string cultureName = null
)
Parameters
- value
- Type: SystemString
Value to parse. - type
- Type: SystemType
Data type of the resulting parsed value. - columnName
- Type: SystemString
Name of a XML element which value to parse. - cultureName (Optional)
- Type: SystemString
Culture to use for parsing values. English culture is used if not specified.
Return Value
Type:
ObjectParsed
value converted to given
type.
Exceptions Exception | Condition |
---|
ArgumentNullException | Thrown when value is null. |
Remarks In case a special expression "##null##" is in value, DBNull.Value is returned.
See Also