CDotNetGetArrayElement
- Updated2023-02-21
- 1 minute(s) read
int CDotNetGetArrayElement (CDotNetHandle array, unsigned int elementType, size_t numberOfDimensions, ssize_t indices[], void *element);
Purpose
Gets the element at the specified index from a .NET array.
Parameters
| Input | ||
| Name | Type | Description |
| array | CDotNetHandle | The handle of the .NET array. |
| elementType | unsigned int | |
| numberOfDimensions | size_t | The number of dimensions of the .NET array. |
| indices | ssize_t [] | An array containing the indices of the element. |
| Output | ||
| Name | Type | Description |
| element | void * | The indexed element of the .NET array. If the .NET array contains strings, you must use CDotNetFreeMemory to free the returned element. If the .NET array contains objects, you must use CDotNetDiscardHandle to discard the returned handle. |
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