CodeMethodInvokeExpression Constructor (CodeExpression, String, CodeExpression[])

 

Initializes a new instance of the CodeMethodInvokeExpression class using the specified target object, method name, and parameters.

Namespace:   System.CodeDom
Assembly:  System (in System.dll)

public CodeMethodInvokeExpression(
	CodeExpression targetObject,
	string methodName,
	params CodeExpression[] parameters
)

Parameters

targetObject
Type: System.CodeDom.CodeExpression

A CodeExpression that indicates the target object with the method to invoke.

methodName
Type: System.String

The name of the method to invoke.

parameters
Type: System.CodeDom.CodeExpression[]

An array of CodeExpression objects that indicate the parameters to call the method with.

.NET Framework
Available since 1.1
Return to top
Show: