Share via


ManagementChannel.Invoke(String, String, Object[]) Method

Definition

When overridden in a derived class, calls the specified method in the remote service.

protected public:
 abstract System::Object ^ Invoke(System::String ^ serviceName, System::String ^ methodName, ... cli::array <System::Object ^> ^ parameters);
protected internal abstract object Invoke (string serviceName, string methodName, params object[] parameters);
abstract member Invoke : string * string * obj[] -> obj
Protected Friend MustOverride Function Invoke (serviceName As String, methodName As String, ParamArray parameters As Object()) As Object

Parameters

serviceName
String

The service to be called. The serviceName must match a server side module name.

methodName
String

The name of the method to invoke.

parameters
Object[]

An array of type Object that contains the parameters to pass to the method.

Returns

The return value from the call to the service, or null if the service has no return value.

Remarks

The Invoke method supports the .NET Framework infrastructure and is not intended to be used directly from your code.

Only .NET Framework types can be passed; arbitrary objects cannot be passed as a parameter. The number of parameters passed is arbitrary.

Applies to