DispatchWrapper(Object) Construtor

Definição

Inicializa uma nova instância da classe DispatchWrapper com o objeto sendo encapsulado.Initializes a new instance of the DispatchWrapper class with the object being wrapped.

public:
 DispatchWrapper(System::Object ^ obj);
public DispatchWrapper (object obj);
public DispatchWrapper (object? obj);
new System.Runtime.InteropServices.DispatchWrapper : obj -> System.Runtime.InteropServices.DispatchWrapper
Public Sub New (obj As Object)

Parâmetros

obj
Object

O objeto a ser encapsulado e convertido em VT_DISPATCH.The object to be wrapped and converted to VT_DISPATCH.

Exceções

obj não é uma classe ou uma matriz.obj is not a class or an array.

- ou --or- obj não dá suporte para IDispatch.obj does not support IDispatch.

O parâmetro obj foi marcado com um atributo ComVisibleAttribute que foi passado um valor de false.The obj parameter was marked with a ComVisibleAttribute attribute that was passed a value of false.

- ou --or- O parâmetro obj herda do tipo marcado com um atributo ComVisibleAttribute que foi passado um valor de false.The obj parameter inherits from a type marked with a ComVisibleAttribute attribute that was passed a value of false.

Aplica-se a