PSCodeMethod.Invoke(Object[]) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Invokes CodeReference method and returns its results.
public:
override System::Object ^ Invoke(... cli::array <System::Object ^> ^ arguments);
public override object Invoke (params object[] arguments);
override this.Invoke : obj[] -> obj
Public Overrides Function Invoke (ParamArray arguments As Object()) As Object
Parameters
- arguments
- Object[]
Arguments to the method.
Returns
Return value from the method.
Exceptions
If arguments is null.
When could CodeReference cannot match the given argument count or could not convert an argument to the type required
For exceptions invoking the CodeReference.