Using object model I need to add an item to a list. The list has 4 custom content types. Depending on data provided I need the item to be of a specific content type.
How is this done?
Using SPListItem oItem = list.AddItem(); does not accept a content type as a parameter. Neither can you set it later it seems the property is read only.
Any ideas?