Rogue Wave Server Component library for .NET Reference Guide
|
|
MvValueAsLong Method |
Converts to long.
Namespace: RW.Server.Component
Assembly: RW.Server.Component (in RW.Server.Component.dll) Version: 7.0.0.0 (7.0.0.0)
Parameters
- direct (Optional)
- Type: SystemBoolean
If true, an exact type match is required. - def (Optional)
- Type: SystemInt64
The default result.
Return Value
Type: Int64If the match is exact, the contained value. Otherwise, and if an exact type match is not required: If the type is user-defined, the result of AsUserValue.AsLong(def). If the type is numeric (including char), the value converted to long. If the type is boolean, 1 if true, 0 if false. if the type is string, try to parse it as a long.