NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

ICodeSourceFile.CreateMethodInvokeExpression

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;

Parameters

target
An array of names to invoke. These targets must be subobjects. For example, to create a method invoke expression for this code:
Panel1.Children.Add new Control()

You would need to pass in a string array that contained "Panel1" and "Children".

targetType
[To be supplied.]
methodName
The name of the method to invoke.
parameters
An array of ICodeParameter objects to invoke the method with.

Return Value

The newly created method invoke expression.

See Also

ICodeSourceFile Interface | ICodeSourceFile Members | System.ComponentModel.Design.CodeModel Namespace | CreateParameter