CDotNetGetEnumTypeFromName
- Updated2023-02-21
- 1 minute(s) read
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:
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