An Automation interface pointer.
A string or integer.
Arguments passed to the method.
in Microsoft Visual Basic and contrasts with the macro call-dispatch-method which requires a type library to be compiled.
should be a COM interface pointer for the
interface. The appropriate Automation method, chosen using
, which is either a string naming the method or the integer id of the method. The
are converted to Automation values and are passed as the method's
parameters in the order in which they appear. The
returned consist of the primary value of the method (if not void) and the values of any
parameters. See Data conversion when calling Automation methods for more details.
(invoke-dispatch-method doc "ReFormat")