Why would youe use "New String" to pass this paraemter?
VB Code:
ds.Load(dataReaderMaritalChoices,_ LoadOption.OverwriteChanges,_ New String() {"MaritalStatusChoices"})
Printable View
Why would youe use "New String" to pass this paraemter?
VB Code:
ds.Load(dataReaderMaritalChoices,_ LoadOption.OverwriteChanges,_ New String() {"MaritalStatusChoices"})
I can't see a good reason to do that, where did you get it?
Microsofts 101 samples
I assume it would be the same as passing ""
That code is not creating a new String object. It's creating a new String array with one element. That code is equivalent to this:The same result but less succinct.vb.net Code:
Dim arr As String() = {"MaritalStatusChoices"} ds.Load(dataReaderMaritalChoices, LoadOption.OverwriteChanges, arr)