อ่านในภาษาอังกฤษ แก้ไข

แชร์ผ่าน


ComWrappers.TryGetObject(IntPtr, Object) Method

Definition

Determines if the specified COM object is a ComWrappers-created unmanaged wrapper and if so, returns the wrapped managed object.

C#
public static bool TryGetObject(IntPtr unknown, out object? obj);

Parameters

unknown
IntPtr

The unmanaged wrapper.

obj
Object

The managed object.

Returns

true if the wrapper was resolved to a managed object, otherwise false.

Applies to

ผลิตภัณฑ์ เวอร์ชัน
.NET 8, 9, 10