ComVariantMarshaller.ConvertToUnmanaged(Object) 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 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
Samarbeta med oss på GitHub
Källan för det här innehållet finns på GitHub, där du även kan skapa och granska ärenden och pull-begäranden. Se vår deltagarguide för mer information.