LabWindows/CVI

CDotNetDiscardHandle

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:

  • dotnet\FileSystemWatcher\FileSystemWatcher.cws

    Open example
  • dotnet\Hashtable\hashtable.cws

    Open example
  • dotnet\RegEx\DotNetRegularExpressions.cws

    Open example
  • dotnet\SimpleTaskMonitor\SimpleTaskMonitor.cws

    Open example
  • dotnet\Timer\timer.cws

    Open example

Log in to get a better experience