Remarks

The search for name is case-sensitive.

If the requested type is non-public and the caller does not have ReflectionPermission to reflect non-public objects outside the current assembly, this method returns a null reference (Nothing in Visual Basic).

Note You cannot omit parameters when looking up constructors and methods. You can only omit parameters when invoking.

Example

[Visual Basic, C#, C++] The following example contains a class with an overloaded method. It obtains a Type object corresponding to MyClass1 and calls GetMethod. The method whose parameters match the arguments specified in the type array is returned by the method call.