Syntax to add custom fields to a subscriber using VB .net

Hi

I'm successfully adding subscribers using VB .Net but struggling to add custom fields and can't find any docs on the syntax.

This work perfectly, but without custom fields for segments:
SM.Add(dw.Item(i)("Email"), dw.Item(i)("Salutation"), Nothing, False)

I've guessed a number of things e.g:

SM.Add(dw.Item(i)("Email"), dw.Item(i)("Salutation"), [{"Type", "client"}, {"Sector", "Legal"}], False)
SM.Add(dw.Item(i)("Email"), dw.Item(i)("Salutation"), {"Type", "client"}, {"Sector", "Legal"}, False)
SM.Add(dw.Item(i)("Email"), dw.Item(i)("Salutation"), [{"key":"Type", "Value":"Client"}, {"key":"Sector", "Value":"Legal"}], False)
               
Does anyone know the right syntax?

Thanks

Ed

200,000 companies around the world can't be wrong.

From Australia to Zimbabwe, and everywhere in between, companies count on 
Campaign Monitor for email campaigns that drive real business results.

Get started for free
1-888-533-8098