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
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.