Edit

Share via


ComVariantMarshaller.ConvertToUnmanaged(Object) Method

Definition

Converts a managed object to an unmanaged ComVariant.

public:
 static System::Runtime::InteropServices::Marshalling::ComVariant ConvertToUnmanaged(System::Object ^ managed);
public static System.Runtime.InteropServices.Marshalling.ComVariant ConvertToUnmanaged (object? managed);
static member ConvertToUnmanaged : obj -> System.Runtime.InteropServices.Marshalling.ComVariant
Public Shared Function ConvertToUnmanaged (managed As Object) As ComVariant

Parameters

managed
Object

The managed object.

Returns

A ComVariant that represents the provided managed object.

Exceptions

The type of managed is not supported.

Applies to