CDotNetDiscardHandle
- Updated2023-02-21
- 2 minute(s) read
int CDotNetDiscardHandle (CDotNetHandle handle);
Purpose
Discards a .NET object handle.
![]() |
Note Do not use this function to discard a CDotNetAssemblyHandle; use CDotNetDiscardAssemblyHandle instead. |
Parameters
| Input | ||
| Name | Type | Description |
| handle | CDotNetHandle | The .NET object handle to discard. |
Return Value
| Name | Type | Description |
| status | int | A value indicating whether an error occurred. Negative error codes indicate function failure. Error codes are defined in cvi\include\cvidotnet.h. You can use CDotNetGetErrorDescription to get the description of an error code. |
Additional Information
Library: .NET Library
Include file: cvidotnet.h
LabWindows/CVI compatibility: LabWindows/CVI 8.0 and later
Examples
Refer to the following examples that use the CDotNetDiscardHandle function:

