_ParameterInfo.Invoke(UInt32, Guid, UInt32, Int16, IntPtr, IntPtr, IntPtr, IntPtr) Méthode
Définition
Fournit l'accès aux propriétés et aux méthodes exposées par un objet.Provides access to properties and methods exposed by an object.
public:
void Invoke(System::UInt32 dispIdMember, Guid % riid, System::UInt32 lcid, short wFlags, IntPtr pDispParams, IntPtr pVarResult, IntPtr pExcepInfo, IntPtr puArgErr);
public void Invoke (uint dispIdMember, ref Guid riid, uint lcid, short wFlags, IntPtr pDispParams, IntPtr pVarResult, IntPtr pExcepInfo, IntPtr puArgErr);
abstract member Invoke : uint32 * Guid * uint32 * int16 * nativeint * nativeint * nativeint * nativeint -> unit
Public Sub Invoke (dispIdMember As UInteger, ByRef riid As Guid, lcid As UInteger, wFlags As Short, pDispParams As IntPtr, pVarResult As IntPtr, pExcepInfo As IntPtr, puArgErr As IntPtr)
Paramètres
- dispIdMember
- UInt32
Identificateur d'un membre.An identifier of a member.
- riid
- Guid
Réservé à un usage ultérieur.Reserved for future use. Doit être IID_NULL.Must be IID_NULL.
- lcid
- UInt32
Contexte des paramètres régionaux dans lequel interpréter les arguments.The locale context in which to interpret arguments.
- wFlags
- Int16
Indicateurs décrivant le contexte de l'appel.Flags describing the context of the call.
- pDispParams
- IntPtr
Pointeur vers une structure qui contient un tableau d'arguments, un tableau d'arguments DISPID pour les arguments nommés et le nombre d'éléments dans les tableaux.A pointer to a structure containing an array of arguments, an array of argument DISPIDs for named arguments, and counts for the number of elements in the arrays.
- pVarResult
- IntPtr
Pointeur vers l'emplacement où le résultat sera stocké.A pointer to the location where the result will be stored.
- pExcepInfo
- IntPtr
Pointeur vers une structure qui contient les informations sur les exceptions.A pointer to a structure that contains exception information.
- puArgErr
- IntPtr
Index du premier argument comportant une erreur.The index of the first argument that has an error.
Remarques
Cette méthode permet d’accéder aux classes managées à partir du code non managé et ne doit pas être appelée à partir du code managé.This method is for access to managed classes from unmanaged code and should not be called from managed code. Pour plus d’informations, consultez IDispatch :: Invoke.For more information, see IDispatch::Invoke.