LabWindows/CVI

CDotNetGetEnumTypeFromName

int CDotNetGetEnumTypeFromName (CDotNetAssemblyHandle typeAssembly, const char *typeName, unsigned int *typeId);

Purpose

Returns the ID of the underlying type of a .NET enum.

Parameters

Input
Name Type Description
typeAssembly CDotNetAssemblyHandle The handle to the assembly that defines the .NET type.
typeName const char * The name of the .NET type.
Output
Name Type Description
typeId unsigned int The ID of the .NET type. This function outputs one of the following IDs:

  • CDOTNET_BYTE
  • CDOTNET_SBYTE
  • CDOTNET_INT16
  • CDOTNET_INT32
  • CDOTNET_INT64
  • CDOTNET_UINT16
  • CDOTNET_UINT32
  • CDOTNET_UINT64

You can pass NULL for this parameter.

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