Delegate.GetMethodImpl 方法

定义

获取当前委托所表示的静态方法。Gets the static method represented by the current delegate.

protected:
 virtual System::Reflection::MethodInfo ^ GetMethodImpl();
protected virtual System.Reflection.MethodInfo GetMethodImpl ();
abstract member GetMethodImpl : unit -> System.Reflection.MethodInfo
override this.GetMethodImpl : unit -> System.Reflection.MethodInfo
Protected Overridable Function GetMethodImpl () As MethodInfo

返回

描述当前委托表示的静态方法的 MethodInfoA MethodInfo describing the static method represented by the current delegate.

异常

调用方不能访问由委托表示的方法(例如,在方法为私有方法的情况下)。The caller does not have access to the method represented by the delegate (for example, if the method is private).

注解

仅当当前委托表示静态方法时,此方法才适用。This method applies only if the current delegate represents a static method.

安全性

ReflectionPermission
当通过诸如InvokeMember(String, BindingFlags, Binder, Object, Object[], ParameterModifier[], CultureInfo, String[])等机制后期绑定调用时。when invoked late-bound through mechanisms such as InvokeMember(String, BindingFlags, Binder, Object, Object[], ParameterModifier[], CultureInfo, String[]). 关联的枚举:MemberAccessAssociated enumeration: MemberAccess

适用于

另请参阅