Constructs a new method invoke expression.
[Visual Basic] Function CreateMethodInvokeExpression( _ ByVal target() As String, _ ByVal targetType As ICodeClass, _ ByVal methodName As String, _ ByVal parameters() As ICodeParameter _ ) As ICodeMethodInvokeExpression [C#] ICodeMethodInvokeExpression CreateMethodInvokeExpression( string[] target, ICodeClass targetType, string methodName, ICodeParameter[] parameters ); [C++] ICodeMethodInvokeExpression* CreateMethodInvokeExpression( String* target[], ICodeClass* targetType, String* methodName, ICodeParameter* parameters[] ) = 0; [JScript] function CreateMethodInvokeExpression( target : String[], targetType : ICodeClass, methodName : String, parameters : ICodeParameter[] ) : ICodeMethodInvokeExpression;
Panel1.Children.Add new Control()
You would need to pass in a string array that contained "Panel1" and "Children".
The newly created method invoke expression.
ICodeSourceFile Interface | ICodeSourceFile Members | System.ComponentModel.Design.CodeModel Namespace | CreateParameter