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. If there is no Automation method with the given name, then a property getter with the same name is called if it exists, otherwise an error is signaled. The
can be used to call property setter methods.
(invoke-dispatch-method doc "ReFormat")