Επεξεργασία

Κοινή χρήση μέσω


Versioned.CallByName(Object, String, CallType, Object[]) Method

Definition

Executes a method on an object, or sets or returns a property on an object.

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

public:
 static System::Object ^ CallByName(System::Object ^ Instance, System::String ^ MethodName, Microsoft::VisualBasic::CallType UseCallType, ... cli::array <System::Object ^> ^ Arguments);
public static object? CallByName (object? Instance, string MethodName, Microsoft.VisualBasic.CallType UseCallType, params object?[]? Arguments);
public static object CallByName (object Instance, string MethodName, Microsoft.VisualBasic.CallType UseCallType, params object[] Arguments);
static member CallByName : obj * string * Microsoft.VisualBasic.CallType * obj[] -> obj
Public Shared Function CallByName (Instance As Object, MethodName As String, UseCallType As CallType, ParamArray Arguments As Object()) As Object

Parameters

Instance
Object

Required. Object. A pointer to the object exposing the property or method.

MethodName
String

Required. String. A string expression containing the name of the property or method on the object.

UseCallType
CallType

Required. An enumeration member of type CallType representing the type of procedure being called. The value of CallType can be Method, Get, or Set.

Arguments
Object[]

Optional. ParamArray. A parameter array containing the arguments to be passed to the property or method being called.

Returns

Executes a method on an object, or sets or returns a property on an object.

Applies to