VirtualTypeImplementor::InvokeMethod Method (MethodInfo^, Object^, array<Object^>^)
Visual Studio 2015
Invokes a method on the object.
Assembly: Microsoft.VisualStudio.Shell.Design (in Microsoft.VisualStudio.Shell.Design.dll)
public: virtual Object^ InvokeMethod( MethodInfo^ method, Object^ instance, array<Object^>^ args )
Parameters
- method
-
Type:
System.Reflection::MethodInfo^
The method to invoke.
- instance
-
Type:
System::Object^
The instance on which to invoke the method. This may be null if the method is static.
- args
-
Type:
array<System::Object^>^
The arguments to the method.
| Exception | Condition |
|---|---|
| NotImplementedException | If non-abstract derived class did not provide an implementation by overriding this method. |
Invokes the specified method. If the method had a return value, this method should return it, otherwise it should return null.
Show: