ModuleBuilder.GetMethodImpl Metoda
Definice
Důležité
Některé informace platí pro předběžně vydaný produkt, který se může zásadně změnit, než ho výrobce nebo autor vydá. Microsoft neposkytuje žádné záruky, výslovné ani předpokládané, týkající se zde uváděných informací.
Vrátí metodu na úrovni modulu, která odpovídá zadaným kritériím.
protected:
override System::Reflection::MethodInfo ^ GetMethodImpl(System::String ^ name, System::Reflection::BindingFlags bindingAttr, System::Reflection::Binder ^ binder, System::Reflection::CallingConventions callConvention, cli::array <Type ^> ^ types, cli::array <System::Reflection::ParameterModifier> ^ modifiers);
[System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("Methods might be removed")]
protected override System.Reflection.MethodInfo? GetMethodImpl(string name, System.Reflection.BindingFlags bindingAttr, System.Reflection.Binder? binder, System.Reflection.CallingConventions callConvention, Type[]? types, System.Reflection.ParameterModifier[]? modifiers);
protected override System.Reflection.MethodInfo GetMethodImpl(string name, System.Reflection.BindingFlags bindingAttr, System.Reflection.Binder binder, System.Reflection.CallingConventions callConvention, Type[] types, System.Reflection.ParameterModifier[] modifiers);
[<System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("Methods might be removed")>]
override this.GetMethodImpl : string * System.Reflection.BindingFlags * System.Reflection.Binder * System.Reflection.CallingConventions * Type[] * System.Reflection.ParameterModifier[] -> System.Reflection.MethodInfo
override this.GetMethodImpl : string * System.Reflection.BindingFlags * System.Reflection.Binder * System.Reflection.CallingConventions * Type[] * System.Reflection.ParameterModifier[] -> System.Reflection.MethodInfo
Protected Overrides Function GetMethodImpl (name As String, bindingAttr As BindingFlags, binder As Binder, callConvention As CallingConventions, types As Type(), modifiers As ParameterModifier()) As MethodInfo
Parametry
- name
- String
Název metody.
- bindingAttr
- BindingFlags
Kombinace bitových BindingFlags příznaků používaných k řízení hledání.
- binder
- Binder
Objekt, který implementuje Binder, obsahující vlastnosti související s touto metodou.
- callConvention
- CallingConventions
Konvence volání pro metodu.
- types
- Type[]
Typy parametrů metody.
- modifiers
- ParameterModifier[]
Pole modifikátorů parametrů, které slouží k práci s vazbami s podpisy parametrů, ve kterých byly typy změněny.
Návraty
Metoda definovaná na úrovni modulu a odpovídá zadaným kritériím; nebo null pokud taková metoda neexistuje.
- Atributy
Výjimky
name is null, is , types or nullelement of types is null.
Poznámky
Tato metoda poskytuje implementaci pro všechna přetížení zděděné Module.GetMethod metody. Pomocí zděděné Module.GetMethod metody můžete získat metody deklarované na úrovni modulu. Metody na úrovni modulu jsou definovány v generovaném kódu pomocí DefineGlobalMethod metody.
Important
Metody na úrovni modulu nelze načíst až po CreateGlobalFunctions zavolání metody pro modul.