ComVariantMarshaller.ConvertToManaged(ComVariant) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Converts an unmanaged ComVariant to a managed object.
public:
static System::Object ^ ConvertToManaged(System::Runtime::InteropServices::Marshalling::ComVariant unmanaged);
public static object? ConvertToManaged (System.Runtime.InteropServices.Marshalling.ComVariant unmanaged);
static member ConvertToManaged : System.Runtime.InteropServices.Marshalling.ComVariant -> obj
Public Shared Function ConvertToManaged (unmanaged As ComVariant) As Object
Parameters
- unmanaged
- ComVariant
The unmanaged variant.
Returns
A managed object that represents the same value as unmanaged
.
Exceptions
The type of data stored in unmanaged
is not supported.
Applies to
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.