다음을 통해 공유


TypeBuilder.DefineMethod Method

Microsoft Silverlight will reach end of support after October 2021. Learn more.

Include Protected Members
Include Inherited Members

Include Silverlight Members
Include Silverlight for Windows Phone Members
Include XNA Framework Members

Adds a method to the type.

This member is overloaded. For complete information about this member, including syntax, usage, and examples, click a name in the overload list.

Overload List

  Name Description
Public method DefineMethod(String, MethodAttributes) Adds a new method to the type, with the specified name and method attributes.
Public method DefineMethod(String, MethodAttributes, CallingConventions) Adds a new method to the type, with the specified name, method attributes, and calling convention.
Public method DefineMethod(String, MethodAttributes, Type, array<Type[]) Adds a new method to the type, with the specified name, method attributes, and method signature.
Public method DefineMethod(String, MethodAttributes, CallingConventions, Type, array<Type[]) Adds a new method to the type, with the specified name, method attributes, calling convention, and method signature.
Public method DefineMethod(String, MethodAttributes, CallingConventions, Type, array<Type[], array<Type[], array<Type[], array<array<Type[][], array<array<Type[][]) Adds a new method to the type, with the specified name, method attributes, calling convention, method signature, and custom modifiers.

Top