PEAPI

ClassDef.AddMethod Method (MethAttr, ImplAttr, String, Type, Param[])

Add a method to this class

[Visual Basic]
Overloads Public Function AddMethod( _
   ByVal mAtts As PEAPI.MethAttr, _
   ByVal iAtts As PEAPI.ImplAttr, _
   ByVal name As String, _
   ByVal retType As PEAPI.Type, _
   ByVal pars As PEAPI.Param() _
) As PEAPI.MethodDef
[C#]
public MethodDef AddMethod(
   MethAttr mAtts,
   ImplAttr iAtts,
   string name,
   Type retType,
   Param[] pars
);

Parameters

mAtts
attributes for this method
iAtts
implementation attributes for this method
name
method name
retType
return type
pars
parameters

Return Value

a descriptor for this new method

See Also

ClassDef Class | ClassDef Members | PEAPI Namespace | ClassDef.AddMethod Overload List