CDotNetSetArrayElement
- Updated2023-02-21
- 1 minute(s) read
int CDotNetSetArrayElement (CDotNetHandle array, unsigned int elementType, size_t numberOfDimensions, ssize_t indices[], void *element);
Purpose
Sets the element at the specified index of 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. |
| element | void * | The value to set at the indexed element of the .NET array. For strings, pass the string value or variable. For other types, pass the address of the variable holding the value. |
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