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.CreateMethodLast

Creates an ICodeMethod object representing a method in the class and positions it in the last available location.

[Visual Basic]
Function CreateMethodLast( _
   ByVal name As String, _
   ByVal arguments() As ICodeParameter, _
   ByVal returnType As ICodeClass, _
   ByVal modifiers As Integer _
) As ICodeMethod
[C#]
ICodeMethod CreateMethodLast(
   string name,
   ICodeParameter[] arguments,
   ICodeClass returnType,
   int modifiers
);
[C++]
ICodeMethod* CreateMethodLast(
   String* name,
   ICodeParameter* arguments[],
   ICodeClass* returnType,
   int modifiers
) = 0;
[JScript]
function CreateMethodLast(
   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 data 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 last available location.

See Also

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