Edit

Share via


ComVariantMarshaller.ConvertToManaged(ComVariant) Method

Definition

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