PSCodeMethod.Invoke(Object[]) Method

Definition

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.

Applies to