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

Join 200,000 companies around the world that use Campaign Monitor to run email marketing campaigns that deliver results for their business.

Get started for free
1-888-533-8098