DispatchWrapper(Object) Constructeur

Définition

Initialise une nouvelle instance de la DispatchWrapper classe avec l’objet encapsulé.

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

Paramètres

obj
Object

Objet à wrapper et convertir en VT_DISPATCH.

Exceptions

obj n’est pas une classe ou un tableau.

-ou-

obj ne prend pas en charge IDispatch.

Le obj paramètre a été marqué avec un ComVisibleAttribute attribut qui a passé une valeur de false.

-ou-

Le obj paramètre hérite d’un type marqué avec un ComVisibleAttribute attribut passé une valeur de false.

S’applique à