# set method

void set(

1. int index,
2. DetectedFace detectedFaceItem

)

Sets an item of the DetectedFaceList object.

param index Index of the DetectedFace item to set. param detectedFaceItem DetectedFace item to set. throws FaceException An error has occurred during Face Library execution.

## Implementation

    void set(int index, DetectedFace detectedFaceItem) {
      var err = faceSDK.id3DetectedFaceList_Set(_pHandle.value, index, detectedFaceItem.handle);
      if (err != FaceError.success.value) {
        throw FaceException(err);
      }
    }