# set method

void set(

1. int index,
2. FaceCandidate faceCandidateItem

)

Sets an item of the FaceCandidateList object.

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

## Implementation

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