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

Creates an ICodeMethod object representing a method in the class and positions it immediately before the specified element.

[Visual Basic]
Function CreateMethodBefore( _
   ByVal name As String, _
   ByVal arguments() As ICodeParameter, _
   ByVal returnType As ICodeClass, _
   ByVal modifiers As Integer, _
   ByVal relativeTo As ICodeMember _
) As ICodeMethod
[C#]
ICodeMethod CreateMethodBefore(
   string name,
   ICodeParameter[] arguments,
   ICodeClass returnType,
   int modifiers,
   ICodeMember relativeTo
);
[C++]
ICodeMethod* CreateMethodBefore(
   String* name,
   ICodeParameter* arguments[],
   ICodeClass* returnType,
   int modifiers,
   ICodeMember* relativeTo
) = 0;
[JScript]
function CreateMethodBefore(
   name : String,
   arguments : ICodeParameter[],
   returnType : ICodeClass,
   modifiers : int,
   relativeTo : ICodeMember
) : 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.
relativeTo
The ICodeMethod to place the method before.

Return Value

An ICodeMethod object containing the specified parameters.

Remarks

The ICodeMethod will be positioned immediately before the element specified by the relativeTo parameter.

See Also

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