|
DataSetExtensionsGetDataType Method
|
Namespace: GSF.DataAssembly: GSF.Core (in GSF.Core.dll) Version: 2.4.182-beta
Syntax public static DataType GetDataType(
this Type objectType,
bool assumeStringForUnknownTypes = true
)
[<ExtensionAttribute>]
static member GetDataType :
objectType : Type *
?assumeStringForUnknownTypes : bool
(* Defaults:
let _assumeStringForUnknownTypes = defaultArg assumeStringForUnknownTypes true
*)
-> DataType
GSF.Data.DataSetExtensions.GetDataType = function(objectType, assumeStringForUnknownTypes);
View SourceParameters
- objectType Type
- Type of object to test.
- assumeStringForUnknownTypes Boolean (Optional)
- Flag to determine if unknown column types should be serialized as strings.
Return Value
DataTypeDerived
DataType based on object
Type if matched; otherwise
Object.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
Type. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).
See Also