Freigeben über


VirtualTypeImplementor.InvokeMethod Method

Invokes a method on the object.

Namespace:  Microsoft.VisualStudio.Shell.Design
Assembly:  Microsoft.VisualStudio.Shell.Design (in Microsoft.VisualStudio.Shell.Design.dll)

Syntax

'Declaration
Public Overridable Function InvokeMethod ( _
    method As MethodInfo, _
    instance As Object, _
    args As Object() _
) As Object
'Usage
Dim instance As VirtualTypeImplementor
Dim method As MethodInfo
Dim instance As Object
Dim args As Object()
Dim returnValue As Object

returnValue = instance.InvokeMethod(method, _
    instance, args)
public virtual Object InvokeMethod(
    MethodInfo method,
    Object instance,
    Object[] args
)
public:
virtual Object^ InvokeMethod(
    MethodInfo^ method, 
    Object^ instance, 
    array<Object^>^ args
)
abstract InvokeMethod : 
        method:MethodInfo * 
        instance:Object * 
        args:Object[] -> Object 
override InvokeMethod : 
        method:MethodInfo * 
        instance:Object * 
        args:Object[] -> Object 
public function InvokeMethod(
    method : MethodInfo, 
    instance : Object, 
    args : Object[]
) : Object

Parameters

  • instance
    Type: System.Object
    The instance on which to invoke the method. This may be nulla null reference (Nothing in Visual Basic) if the method is static.

Return Value

Type: System.Object
An object that represents a return value of an invoked method.

Exceptions

Exception Condition
NotImplementedException

If non-abstract derived class did not provide an implementation by overriding this method.

Remarks

Invokes the specified method. If the method had a return value, this method should return it, otherwise it should return nulla null reference (Nothing in Visual Basic).

.NET Framework Security

See Also

Reference

VirtualTypeImplementor Class

VirtualTypeImplementor Members

Microsoft.VisualStudio.Shell.Design Namespace

VirtualTypeImplementor