COM::createFromVariant Method [AX 2012]
Creates an instance of the COM class by using the specified instance of the COMVariant class.
client server public static COM createFromVariant(COMVariant variant)
Run On
CalledParameters
- variant
- Type: COMVariant Class
The instance of the COMVariant class to use to create the new instance of the COM class.
Return Value
Type: COM ClassAn instance of the COM class for the COM object that is specified by the variant parameter; nullNothingnullptrunita null reference (Nothing in Visual Basic) if the instance of the COM class could not be created.
Show: