다음을 통해 공유


IFixedTypeInfo.Invoke Method

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

For a description of this member, see ITypeInfo.Invoke.

MSBuild is now included in Visual Studio instead of the .NET Framework. You can use MSBuild 12.0 side-by-side with versions previously deployed with the .NET Framework.For more information, see What's New in MSBuild 12.0.

Namespace:  Microsoft.Build.Tasks
Assembly:  Microsoft.Build.Tasks.Core (in Microsoft.Build.Tasks.Core.dll)

Syntax

'Declaration
Sub Invoke ( _
    pvInstance As Object, _
    memid As Integer, _
    wFlags As Short, _
    ByRef pDispParams As DISPPARAMS, _
    pVarResult As IntPtr, _
    pExcepInfo As IntPtr, _
    <OutAttribute> ByRef puArgErr As Integer _
)
void Invoke(
    Object pvInstance,
    int memid,
    short wFlags,
    ref DISPPARAMS pDispParams,
    IntPtr pVarResult,
    IntPtr pExcepInfo,
    out int puArgErr
)
void Invoke(
    Object^ pvInstance, 
    int memid, 
    short wFlags, 
    DISPPARAMS% pDispParams, 
    IntPtr pVarResult, 
    IntPtr pExcepInfo, 
    [OutAttribute] int% puArgErr
)
abstract Invoke : 
        pvInstance:Object * 
        memid:int * 
        wFlags:int16 * 
        pDispParams:DISPPARAMS byref * 
        pVarResult:IntPtr * 
        pExcepInfo:IntPtr * 
        puArgErr:int byref -> unit
function Invoke(
    pvInstance : Object, 
    memid : int, 
    wFlags : short, 
    pDispParams : DISPPARAMS, 
    pVarResult : IntPtr, 
    pExcepInfo : IntPtr, 
    puArgErr : int
)

Parameters

  • pvInstance
    Type: System.Object

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

  • wFlags
    Type: System.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
    Type: 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
    Type: System.IntPtr

    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
    Type: System.IntPtr

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

  • puArgErr
    Type: System.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.

.NET Framework Security

See Also

Reference

IFixedTypeInfo Interface

Microsoft.Build.Tasks Namespace