Attribute._Attribute.Invoke(UInt32, Guid, UInt32, Int16, IntPtr, IntPtr, IntPtr, IntPtr) Método
Definição
Fornece acesso a propriedades e métodos expostos por um objeto.Provides access to properties and methods exposed by an object.
virtual void System.Runtime.InteropServices._Attribute.Invoke(System::UInt32 dispIdMember, Guid % riid, System::UInt32 lcid, short wFlags, IntPtr pDispParams, IntPtr pVarResult, IntPtr pExcepInfo, IntPtr puArgErr) = System::Runtime::InteropServices::_Attribute::Invoke;
void _Attribute.Invoke (uint dispIdMember, ref Guid riid, uint lcid, short wFlags, IntPtr pDispParams, IntPtr pVarResult, IntPtr pExcepInfo, IntPtr puArgErr);
abstract member System.Runtime.InteropServices._Attribute.Invoke : uint32 * Guid * uint32 * int16 * nativeint * nativeint * nativeint * nativeint -> unit
override this.System.Runtime.InteropServices._Attribute.Invoke : uint32 * Guid * uint32 * int16 * nativeint * nativeint * nativeint * nativeint -> unit
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) Implements _Attribute.Invoke
Parâmetros
- dispIdMember
- UInt32
Identifica o membro.Identifies the member.
- riid
- Guid
Reservado para uso futuro.Reserved for future use. Deve ser IID_NULL.Must be IID_NULL.
- lcid
- UInt32
O contexto de localidade no qual interpretar argumentos.The locale context in which to interpret arguments.
- wFlags
- Int16
Sinalizadores que descrevem o contexto da chamada.Flags describing the context of the call.
- pDispParams
- IntPtr
Ponteiro para uma estrutura contendo uma matriz de argumentos, uma matriz de DISPIDs de argumento para argumentos nomeados e contagens para o número de elementos nas matrizes.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
Ponteiro para o local onde o resultado deve ser armazenado.Pointer to the location where the result is to be stored.
- pExcepInfo
- IntPtr
Ponteiro para uma estrutura que contém informações de exceção.Pointer to a structure that contains exception information.
- puArgErr
- IntPtr
O índice do primeiro argumento que tem um erro.The index of the first argument that has an error.
Implementações
Exceções
Não há suporte para acesso com associação tardia usando a interface IDispatch
COM.Late-bound access using the COM IDispatch
interface is not supported.
Comentários
Este método é para acesso a classes gerenciadas de código não gerenciado e não deve ser chamado em código gerenciado.This method is for access to managed classes from unmanaged code, and should not be called from managed code. Para obter mais informações, consulte IDispatch:: Invoke.For more information, see IDispatch::Invoke.