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

Definizione

Esegue un metodo su un oggetto o imposta o restituisce una proprietà su un oggetto .

Questa API supporta l'infrastruttura del prodotto e non è previsto che venga usata direttamente dal codice.

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);
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

Parametri

Instance
Object

Required. Object. Puntatore all'oggetto che espone la proprietà o il metodo.

MethodName
String

Required. String. Espressione stringa contenente il nome della proprietà o del metodo nell'oggetto .

UseCallType
CallType

Required. Membro di enumerazione di tipo CallType che rappresenta il tipo di routine da chiamare. Il valore di CallType può essere Method, Geto Set.

Arguments
Object[]

Optional. ParamArray. Matrice di parametri contenente gli argomenti da passare alla proprietà o al metodo chiamato.

Valori restituiti

Esegue un metodo su un oggetto o imposta o restituisce una proprietà su un oggetto .

Si applica a