CDotNetSetArrayElements
- Updated2023-02-21
- 1 minute(s) read
int CDotNetSetArrayElements (CDotNetHandle array, unsigned int elementType, size_t numberOfElements, void *elements);
Purpose
Overwrites all the elements of a .NET array. You must pass the correct type and size for the array.
Parameters
| Input | ||
| Name | Type | Description |
| array | CDotNetHandle | The handle of the .NET array. |
| elementType | unsigned int | |
| numberOfElements | size_t | The number of elements in the buffer passed in the elements parameter. This number must be greater than or equal to the total number of elements in the array. |
| elements | void * | The elements to set in the .NET array. You must pass a buffer containing all the elements of the array. |
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