Converts an array of COM tp://go.microsoft.com/fwlink/?LinkId=148670 to an array of objects.
An object array that corresponds to aSrcNativeVariant.
Marshal.GetObjectsForNativeVariants(IntPtr, int) returns an array of managed objects that corresponds to a raw pointer to a C-style array of unmanaged VARIANT types. The interop marshaler performs the identical transformation when exposing a VARIANT type to managed code. The method returns an empty array when the cVars parameter is 0.
The object array (the return value) gets garbage collected as usual. The unmanaged input array or individual VARIANTs in the input array are not freed. Therefore it is your responsibility to free them as appropriate.