ManagementChannel.Invoke(String, String, 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.
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.
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.