How can I use a content type programmatically?
example: I have a content type called "Doc Template1" and I have added it as a content type in my document library. And when I click New Document > Doc Template1; Microsoft Word opens up.
Now, how will I do this programmatically?
I have now retrieve my content types using
foreach (SPContentType cType in contentTypeCollection)
{
lstBox.Items.Add(cType.Name);
}
Thanks!