XElement Explicit Conversion (XElement to Decimal)
[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]
Assembly: System.Xml.Linq (in System.Xml.Linq.dll)
Parameters
- element
- Type: System.Xml.Linq.XElement
The XElement to cast to Decimal.
| Exception | Condition |
|---|---|
| FormatException | The element does not contain a valid Decimal value. |
| ArgumentNullException | The element parameter is null. |
Show: