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