Variant.getAutomation

Returns the OleAutomation object represented by this Variant.

<p>If this Variant does not contain an OleAutomation object, an attempt is made to coerce the Variant type into an OleAutomation object. If this fails, an error is thrown. Note that OleAutomation objects must be disposed when no longer needed.

@return the OleAutomation object represented by this Variant

@exception SWTException <ul> <li>ERROR_CANNOT_CHANGE_VARIANT_TYPE when type of Variant can not be coerced into an OleAutomation object</li> </ul>

class Variant
getAutomation
(
)

Meta