I have created an SP.List item "lst". I also:
lst.ContentTypesEnabled = true;
lst.Update();
clientContext.ExecuteQuery();
I have searched the AvailableContentTypes and found the one I want to add to lst. I then:
SP.ContentTypeCollection lstTypeCollection = lst.ContentTypes;
... now I'm stuck.
the lstTypeCollection.Add()
wants a ContentTypeCreationInformation
object
at that point I'm wandering in the dark.
Can you shed light? Thanks in Advance :-)
Use ContentTypeCollection.AddExistingContentType method to add an existing content type to the list.
Example