Returns the value of the NBElement passed in after first converting it to a Nullable<Decimal> if required with specified format.
Namespace: IBM.Broker.PluginAssembly: IBM.Broker.Plugin (in IBM.Broker.Plugin.dll) Version: 9.0.0.0
public static Nullable<decimal> ToNullableDecimal(
NBElement value,
string format
)
public static Nullable<decimal> ToNullableDecimal(
NBElement value,
string format
)
Public Shared Function ToNullableDecimal (
value As NBElement,
format As String
) As Nullable(Of Decimal)
Public Shared Function ToNullableDecimal (
value As NBElement,
format As String
) As Nullable(Of Decimal)
public:
static Nullable<Decimal> ToNullableDecimal(
NBElement^ value,
String^ format
)
public:
static Nullable<Decimal> ToNullableDecimal(
NBElement^ value,
String^ format
)
static member ToNullableDecimal :
value : NBElement *
format : string -> Nullable<decimal>
static member ToNullableDecimal :
value : NBElement *
format : string -> Nullable<decimal>
Return Value
Type:
Nullable
Decimal The current element's value converted to a
Nullable<Decimal> data type using the specified format.
Exception | Condition |
---|
System FormatException | Thrown if the value can not be converted to a Nullable<Decimal> with the given format. |
The format string uses the syntax documented in the Information Center in the topic "Formatting and parsing numbers as strings (ak05615)".