CallByName Method
Collapse the table of content
Expand the table of content

Versioned.CallByName Method

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

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

Namespace:  Microsoft.VisualBasic.CompilerServices
Assembly:  Microsoft.VisualBasic (in Microsoft.VisualBasic.dll)

public static Object CallByName(
	Object Instance,
	string MethodName,
	CallType UseCallType,
	params Object[] Arguments
)

Parameters

Instance
Type: System.Object
Required. Object. A pointer to the object exposing the property or method.
MethodName
Type: System.String
Required. String. A string expression containing the name of the property or method on the object.
UseCallType
Type: Microsoft.VisualBasic.CallType
Required. An enumeration member of type CallType enumeration representing the type of procedure being called. The value of CallType can be Method, Get, or Set.
Arguments
Type: System.Object[]
Optional. ParamArray. A parameter array containing the arguments to be passed to the property or method being called.

Return Value

Type: System.Object
Executes a method on an object, or sets or returns a property on an object.

Silverlight

Supported in: 5, 4, 3

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.

Community Additions

ADD
Show:
© 2016 Microsoft