When i am creating SPFields the constructor states that you must pass in a collection of fields.
Can anyone enlighten me on why?
Thanks in advanced Truez
When i am creating SPFields the constructor states that you must pass in a collection of fields.
Can anyone enlighten me on why?
Thanks in advanced Truez
The constructor wants some contextual information about which collection of fields it will be added to. You shouldn't create new fields this way, though. Instead, use SPFieldCollection.Add()
- which will construct the object and add it to the appropriate collection.