Activator._Activator.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._Activator.Invoke(System::UInt32 dispIdMember, Guid % riid, System::UInt32 lcid, short wFlags, IntPtr pDispParams, IntPtr pVarResult, IntPtr pExcepInfo, IntPtr puArgErr) = System::Runtime::InteropServices::_Activator::Invoke;
void _Activator.Invoke (uint dispIdMember, ref Guid riid, uint lcid, short wFlags, IntPtr pDispParams, IntPtr pVarResult, IntPtr pExcepInfo, IntPtr puArgErr);
abstract member System.Runtime.InteropServices._Activator.Invoke : uint32 * Guid * uint32 * int16 * nativeint * nativeint * nativeint * nativeint -> unit
override this.System.Runtime.InteropServices._Activator.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 _Activator.Invoke
Parâmetros
- dispIdMember
- UInt32
Um identificador de distribuição que identifica o membro.A dispatch identifier that 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
Um ponteiro para uma estrutura que contém uma matriz de argumentos, uma matriz de DISPIDs de argumento para argumentos nomeados e contagens para o número de elementos nas matrizes.A pointer to a structure that contains an array of arguments, an array of argument DISPIDs for named arguments, and counts for the number of elements in the arrays.
- pVarResult
- IntPtr
Um ponteiro para o local em que o resultado deve ser armazenado.A pointer to the location where the result is to be stored.
- pExcepInfo
- IntPtr
Um ponteiro para uma estrutura que contém informações de exceção.A 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 é usado para acessar classes gerenciadas a partir de código não gerenciado e não deve ser chamado a partir de código gerenciado.This method is used to access 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.