IRemoteTypeContract.InvokeMember(String, BindingFlags, IRemoteObjectContract, IRemoteArgumentArrayContract, Boolean[], Int32) Method

Definition

Invokes the specified member of the current IRemoteTypeContract.

public:
 System::AddIn::Contract::RemoteArgument InvokeMember(System::String ^ name, System::Reflection::BindingFlags bindingFlags, System::AddIn::Contract::Automation::IRemoteObjectContract ^ target, System::AddIn::Contract::Collections::IRemoteArgumentArrayContract ^ remoteArgs, cli::array <bool> ^ remoteArgModifiers, int localeId);
public System.AddIn.Contract.RemoteArgument InvokeMember (string name, System.Reflection.BindingFlags bindingFlags, System.AddIn.Contract.Automation.IRemoteObjectContract target, System.AddIn.Contract.Collections.IRemoteArgumentArrayContract remoteArgs, bool[] remoteArgModifiers, int localeId);
abstract member InvokeMember : string * System.Reflection.BindingFlags * System.AddIn.Contract.Automation.IRemoteObjectContract * System.AddIn.Contract.Collections.IRemoteArgumentArrayContract * bool[] * int -> System.AddIn.Contract.RemoteArgument

Parameters

name
String

The name of the member to invoke.

bindingFlags
BindingFlags

A bitwise combination of the BindingFlags values that specifies how to search for the member.

target
IRemoteObjectContract

The IRemoteObjectContract on which to invoke the specified member.

remoteArgs
IRemoteArgumentArrayContract

An IRemoteArgumentArrayContract that contains the arguments to pass to the member to invoke.

remoteArgModifiers
Boolean[]

An array of Boolean values that indicate whether each of the remoteArgs values is passed by reference.

localeId
Int32

A locale ID to use for locale-specific conversions that might be performed by the member being invoked.

Returns

A RemoteArgument that represents the return value of the invoked member.

Remarks

The remoteArgModifiers parameter is used only for components that are written using COM. Each value in the remoteArgModifiers parameter indicates whether the corresponding value in the remoteArgs parameter is passed by reference. The length of remoteArgModifiers should be the same as the length of remoteArgs.

If you pass null for remoteArgModifiers, this method uses default logic to determine whether an argument is passed by reference.

Applies to