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!

ICodeClass.CreateMethod

Creates an ICodeMethod object representing a method in the class.

[Visual Basic]
Function CreateMethod( _
   ByVal name As String, _
   ByVal arguments() As ICodeParameter, _
   ByVal returnType As ICodeClass, _
   ByVal modifiers As Integer _
) As ICodeMethod
[C#]
ICodeMethod CreateMethod(
   string name,
   ICodeParameter[] arguments,
   ICodeClass returnType,
   int modifiers
);
[C++]
ICodeMethod* CreateMethod(
   String* name,
   ICodeParameter* arguments[],
   ICodeClass* returnType,
   int modifiers
) = 0;
[JScript]
function CreateMethod(
   name : String,
   arguments : ICodeParameter[],
   returnType : ICodeClass,
   modifiers : int
) : ICodeMethod;

Parameters

name
The name of the method.
arguments
An array of type ICodeParameter that represents the method's parameters. Although only the value portion of the parameter is required, languages such as Visual Basic may support using named arguments.
returnType
An ICodeClass that represents the type returned from the method.
modifiers
The access modifiers for the method.

Return Value

An ICodeMethod object containing the specified parameters.

Remarks

The ICodeMethod will be positioned in the first available location.

See Also

ICodeClass Interface | ICodeClass Members | System.ComponentModel.Design.CodeModel Namespace | ICodeMethod | ICodeParameter | MemberModifier