| MvValueAsLong Method |
Converts to long.
Namespace: RW.Server.ComponentAssembly: RW.Server.Component (in RW.Server.Component.dll) Version: 6.3.0.0 (0.8.0.0)
Syntax public virtual long AsLong(
bool direct = false,
long def = 0
)
Public Overridable Function AsLong (
Optional direct As Boolean = false,
Optional def As Long = 0
) As Long
public:
virtual long long AsLong(
bool direct = false,
long long def = 0
)
Parameters
- direct (Optional)
- Type: SystemBoolean
If true, an exact type match is required. - def (Optional)
- Type: SystemInt64
The default result.
Return Value
Type:
Int64
If 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.
See Also