Returns the value of the NBElement passed in after first converting it to a String if required using specified format.

C# | Visual Basic | Visual C++ | F# |

The current element's value converted to a String data type using the specified format.

The format string uses the syntax documented in the Infocenter in the topic "Formatting and parsing numbers as strings (ak05615)".

Exception | Condition |
---|---|
FormatException | Thrown if the value can not be converted to a String using specified format. |