Convert the value returned by Excel to the expected type
Namespace:
XllPlus.ComWrappers.RuntimeAssembly: XllPlus.ComWrappers.Runtime (in XllPlus.ComWrappers.Runtime.dll) Version: 6.3.4.831 (6.3.4.0831)
Syntax
C# |
---|
protected Object Unwrap( Object result, Type returnType ) |
Visual Basic (Declaration) |
---|
Protected Function Unwrap ( _ result As Object, _ returnType As Type _ ) As Object |
Visual C++ |
---|
protected: Object^ Unwrap( Object^ result, Type^ returnType ) |
Parameters
- result
- Type: System..::.Object
A variant value returned by Excel
- returnType
- Type: System..::.Type
The desired type, which may be an array type
Return Value
If the function returns, it always returns an object of type returnType.Exceptions
Exception | Condition |
---|---|
XllPlus.ComWrappers.Runtime..::.XllWrapperException | Thrown if conversion is not possible. |