Convert VBA to VB.NET BOM Table Feature

Hello Guys!

Can someone help me to convert the following code to VB.net. Seems like it doesn`t understand what to do with items in bold:

Original code was taken from : 2012 SOLIDWORKS API Help - Insert BOM Table Example (VBA)

        Set swBomFeat = swBomTable.BomFeature

        Names = swBomFeat.GetConfigurations(False, Visible)

        Visible(0) = True

        boolStatus = swBomFeat.SetConfigurations(True, Visible, Names)

Thank you.

SolidworksApi macros