Compartir a través de


IFixedTypeInfo.Invoke Method

Definition

For a description of this member, see Invoke(Object, Int32, Int16, DISPPARAMS, IntPtr, IntPtr, Int32).

This API supports the product infrastructure and is not intended to be used directly from your code.

public:
 void Invoke(System::Object ^ pvInstance, int memid, short wFlags, System::Runtime::InteropServices::ComTypes::DISPPARAMS % pDispParams, IntPtr pVarResult, IntPtr pExcepInfo, [Runtime::InteropServices::Out] int % puArgErr);
public void Invoke (object pvInstance, int memid, short wFlags, ref System.Runtime.InteropServices.ComTypes.DISPPARAMS pDispParams, IntPtr pVarResult, IntPtr pExcepInfo, out int puArgErr);
abstract member Invoke : obj * int * int16 * DISPPARAMS * nativeint * nativeint * int -> unit
Public Sub Invoke (pvInstance As Object, memid As Integer, wFlags As Short, ByRef pDispParams As DISPPARAMS, pVarResult As IntPtr, pExcepInfo As IntPtr, ByRef puArgErr As Integer)

Parameters

pvInstance
Object

Pointer to an instance of the interface described by this type description.

memid
Int32

Identifies the interface member.

wFlags
Int16

Flags describing the context of the invoke call, as follows:

DISPATCH_METHOD if the member is accessed as a method. If there is ambiguity, both this and the DISPATCH_PROPERTYGET flag can be set.

DISPATCH_PROPERTYGET if the member is retrieved as a property or data member.

DISPATCH_PROPERTYPUT if the member is changed as a property or data member.

DISPATCH_PROPERTYPUTREF if the member is changed by using a reference assignment, rather than a value assignment. This value is only valid when the property accepts a reference to an object.

pDispParams
DISPPARAMS

Points to a structure that contains an array of arguments, an array of DISPIDs for named arguments, and counts of the number of elements in each array.

pVarResult
IntPtr

nativeint

Should be Null if the caller does not expect any result. Otherwise, it should be a pointer to the location at which the result is to be stored. If wFlags specifies DISPATCH_PROPERTYPUT or DISPATCH_PROPERTYPUTREF, pVarResultis ignored.

pExcepInfo
IntPtr

nativeint

Points to an exception information structure, which is filled in only if DISP_E_EXCEPTION is returned. If pExcepInfo is Null on input, only an HRESULT error will be returned.

puArgErr
Int32

If Invoke returns DISP_E_TYPEMISMATCH, puArgErr indicates the index (within rgvarg) of the argument with incorrect type. If more than one argument returns an error, puArgErr indicates only the first argument with an error. Arguments in pDispParams->rgvarg appear in reverse order, so the first argument is the one having the highest index in the array. Cannot be Null.

Applies to