COMMethodInfo.Invoke(Object, BindingFlags, Binder, Object[], CultureInfo) COMMethodInfo.Invoke(Object, BindingFlags, Binder, Object[], CultureInfo) COMMethodInfo.Invoke(Object, BindingFlags, Binder, Object[], CultureInfo) Method

Definition

Calls the external COM method by using the COMMemberInfo that was specified to the Initialize(String, COMMemberInfo) method.

This API supports the product infrastructure and is not intended to be used directly from your code.

public:
 override System::Object ^ Invoke(System::Object ^ obj, System::Reflection::BindingFlags invokeAttr, System::Reflection::Binder ^ binder, cli::array <System::Object ^> ^ parameters, System::Globalization::CultureInfo ^ culture);
public override object Invoke (object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, object[] parameters, System.Globalization.CultureInfo culture);
override this.Invoke : obj * System.Reflection.BindingFlags * System.Reflection.Binder * obj[] * System.Globalization.CultureInfo -> obj

Parameters

obj
Object Object Object

The object to call the method on. This parameter is ignored.

invokeAttr
BindingFlags BindingFlags BindingFlags

A bitwise combination of the enumeration values that control the binding.

binder
Binder Binder Binder

An object that converts the type from actual argument type to formal argument type.

parameters
Object[]

The argument list to pass to the external COM member.

culture
CultureInfo CultureInfo CultureInfo

Provides information about a specific culture or locale. Used to format numbers, dates, and strings correctly.

Returns

The return value of the call to the external COM method.

Applies to

See also