The updating of the indexes is "transparent". So, your question boils down to "how to insert a record".
If your question is: how do I create a database with primary and secondary indexes, then that's another question / story.
If in the process of inserting a record you violate secondary index rules, then that's another topic again.
vb.net - How can I Insert data into SQL Server using VBNet - Stack Overflow[
^]