Visual Basic (Usage) | ![]() |
---|---|
Dim value As Object Dim throwOnError As Boolean Dim value As Object value = BaseVariableState.ExtractValueFromVariant(Of T)(value, throwOnError) |
C# | |
---|---|
[ObsoleteAttribute("Should use the version that takes a ISystemContext (pass null if ISystemContext is not available).")] public static object ExtractValueFromVariant<T>( object value, bool throwOnError ) |
Parameters
- value
- throwOnError
Type Parameters
- T
Target Platforms: Windows 7/8/10, Windows Server 2003/2008/2012/2015, .NET4.x