Attempts to convert the object to a vector with the specified element type.
Namespace:
Extreme.Data
Assembly:
Extreme.Data (in Extreme.Data.dll) Version: 3.1.0
Vector<T> AsVector<T>(
bool strict = true
)
Function AsVector(Of T) (
Optional strict As Boolean = true
) As Vector(Of T)
generic<typename T>
Vector<T>^ AsVector(
bool strict = true
)
abstract AsVector :
?strict : bool
(* Defaults:
let _strict = defaultArg strict true
*)
-> Vector<'T>
Parameters
- strict (Optional)
- Type: SystemBoolean
Specifies whether the element type
should be matched exactly (), or whether
conversions are allowed ().
Type Parameters
- T
- The element type of the vector
Return Value
Type:
VectorTThe new vector if successful; otherwise
.
The conversion may fail for two reasons. Either the object
is not a vector, matrix, or one-column data frame,
or the element type of the vector cannot be cast
to T.
Reference