HandleRef(Object, IntPtr) Constructor
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.
Initializes a new instance of the HandleRef class with the object to wrap and a handle to the resource used by unmanaged code.
public:
HandleRef(System::Object ^ wrapper, IntPtr handle);
public HandleRef (object? wrapper, IntPtr handle);
public HandleRef (object wrapper, IntPtr handle);
new System.Runtime.InteropServices.HandleRef : obj * nativeint -> System.Runtime.InteropServices.HandleRef
Public Sub New (wrapper As Object, handle As IntPtr)
Parameters
- wrapper
- Object
A managed object that should not be finalized until the platform invoke call returns.
Applies to
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.