COMMemberInfo.Call(BindingFlags, Binder, Object[], CultureInfo) 方法

定义

在类中实现时,使 JScript 能够调用外部 COM 成员。When implemented in a class, enables JScript to call an external COM member. 使用指定的绑定信息。Uses the specified binding information.

此 API 支持产品基础结构,不能在代码中直接使用。

public:
 System::Object ^ Call(System::Reflection::BindingFlags invokeAttr, System::Reflection::Binder ^ binder, cli::array <System::Object ^> ^ arguments, System::Globalization::CultureInfo ^ culture);
public object Call (System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, object[] arguments, System.Globalization.CultureInfo culture);
abstract member Call : System.Reflection.BindingFlags * System.Reflection.Binder * obj[] * System.Globalization.CultureInfo -> obj
Public Function Call (invokeAttr As BindingFlags, binder As Binder, arguments As Object(), culture As CultureInfo) As Object

参数

invokeAttr
BindingFlags

枚举值的按位组合,这些值控制绑定。A bitwise combination of the enumeration values that control the binding.

binder
Binder

一个对象,该对象执行从实参类型到形参类型的类型转换。An object that performs type conversion from actual argument type to formal argument type.

arguments
Object[]

要传递给外部 COM 成员的参数列表。The argument list to pass to the external COM member.

culture
CultureInfo

提供有关特定区域性或区域设置的信息,以便正确设置数字、日期和字符串的格式。Provides information about a specific culture or locale to format numbers, dates, and strings correctly.

返回

Object

对外部 COM 成员的调用的值。The value of the call to the external COM member.

适用于

另请参阅