ComWrappers.TryGetObject(IntPtr, Object) Méthode
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Détermine si l’objet COM spécifié est un ComWrapperswrapper non managé créé et, le cas échéant, retourne l’objet managé encapsulé.
public:
static bool TryGetObject(IntPtr unknown, [Runtime::InteropServices::Out] System::Object ^ % obj);
public static bool TryGetObject(IntPtr unknown, out object? obj);
static member TryGetObject : nativeint * obj -> bool
Public Shared Function TryGetObject (unknown As IntPtr, ByRef obj As Object) As Boolean
Paramètres
- unknown
-
IntPtr
nativeint
Wrapper non managé.
- obj
- Object
Objet managé.
Retours
true si le wrapper a été résolu en objet managé , sinon false.