Click or drag to resize
MvValueAsLong Method
Converts to long.

Namespace: RW.Server.Component
Assembly: 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
)

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