DataViewBrowseObject.IReflect.GetMethod, méthode (String, BindingFlags)

Récupère la méthode spécifiée qui correspond aux contraintes de liaison spécifiées pour le type de l'instance actuelle.

Espace de noms :  Microsoft.VisualStudio.Data.Framework
Assembly :  Microsoft.VisualStudio.Data.Framework (dans Microsoft.VisualStudio.Data.Framework.dll)

Syntaxe

'Déclaration
Private Function GetMethod ( _
    name As String, _
    bindingAttr As BindingFlags _
) As MethodInfo Implements IReflect.GetMethod
MethodInfo IReflect.GetMethod(
    string name,
    BindingFlags bindingAttr
)
private:
virtual MethodInfo^ GetMethod(
    String^ name, 
    BindingFlags bindingAttr
) sealed = IReflect::GetMethod
private abstract GetMethod : 
        name:string * 
        bindingAttr:BindingFlags -> MethodInfo  
private override GetMethod : 
        name:string * 
        bindingAttr:BindingFlags -> MethodInfo
JScript ne prend pas en charge les implémentations d'interfaces explicites.

Paramètres

  • name
    Type : String

    Nom de la méthode à obtenir.

  • bindingAttr
    Type : BindingFlags

    Un masque de bits est composé d'un ou plusieurs BindingFlags qui spécifient comment la recherche est incorrect, ou zéro pour retourner un tableau vide.

Valeur de retour

Type : MethodInfo
Objet MethodInfo représentant la méthode qui correspond aux contraintes de liaison spécifiées pour le type de l'instance actuelle, s'il le trouve ; sinon, nullune référence null (Nothing en Visual Basic).

Implémentations

IReflect.GetMethod(String, BindingFlags)

Sécurité .NET Framework

Voir aussi

Référence

DataViewBrowseObject Classe

GetMethod, surcharge

Microsoft.VisualStudio.Data.Framework, espace de noms