다음을 통해 공유


Type.GetMethod Method (String, BindingFlags)

Searches for the specified method, using the specified binding constraints (flags).

Namespace: System
Assembly: mscorlib (in mscorlib.dll)

Syntax

[MethodImplAttribute]
public virtual MethodInfo GetMethod (
         stringname,
         BindingFlagsbindingAttr
)

Parameters

  • name
    The String object containing the name of the method you want to get.

  • bindingAttr
    A bitmask containing one or more BindingFlags objects that specify how the search is conducted.

    -or-

    0 (zero), to return a null reference.

Return Value

A MethodInfo object representing the method that matches the specified requirements, if such a match is found; otherwise, a null reference.

Version Information

Available in the .NET Micro Framework versions 2.0, 2.5, 3.0, 4.0, and 4.1.

See Also

Reference

Type Class
Type Members
System Namespace