As the tips says, the property "SelectedItem" does not have an accessible setter.
SelectedItem is a read only property in SearchHandler, you could refer to SearchHandler.SelectedItem Property to get the details.
That's the reason why the error occurs.
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.