ComWrappers.TryGetObject(IntPtr, Object) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Determines if the specified COM object is a ComWrappers-created unmanaged wrapper and if so, returns the wrapped managed object.
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
Parameters
- unknown
-
IntPtr
nativeint
The unmanaged wrapper.
- obj
- Object
The managed object.
Returns
true
if the wrapper was resolved to a managed object, otherwise false
.
Applies to
Surađujte s nama na GitHubu
Izvor za ovaj sadržaj možete pronaći na GitHubu, gdje možete stvarati i pregledavati probleme i zahtjeve za povlačenjem. Dodatne informacije potražite u našem vodiču za suradnike.