Invoke Method
Collapse the table of content
Expand the table of content

IRemoteMethodInfoContract.Invoke Method (IRemoteObjectContract, BindingFlags, IRemoteArgumentArrayContract, Int32)


Invokes the method that this IRemoteMethodInfoContract identifies.

Namespace:   System.AddIn.Contract.Automation
Assembly:  System.AddIn.Contract (in System.AddIn.Contract.dll)

RemoteArgument Invoke(
	IRemoteObjectContract target,
	BindingFlags bindingFlags,
	IRemoteArgumentArrayContract parameters,
	int localeId


Type: System.AddIn.Contract.Automation.IRemoteObjectContract

The IRemoteObjectContract that identifies the object that contains the method to invoke.

Type: System.Reflection.BindingFlags

A bitwise combination of the BindingFlags values that specifies how to invoke the method.

Type: System.AddIn.Contract.Collections.IRemoteArgumentArrayContract

An IRemoteArgumentArrayContract that specifies the method parameters; null if the method does not have any parameters.

Type: System.Int32

The locale ID that the method will use for any locale-specific type conversions of the arguments or return value.

Return Value

Type: System.AddIn.Contract.RemoteArgument

A RemoteArgument that specifies the return value of the invoked method.

If the invoked method does not have a return value (for example, the method is a constructor), Invoke returns a default RemoteArgument in which the RemoteArgumentKind property is set to the value RemoteArgumentKind.Missing and the TypeCode property is set to the value TypeCode.Empty.

.NET Framework
Available since 3.5
Return to top
© 2016 Microsoft