event handler

Getting the content type in event handler

Itemadding Event SPContentType = properties.ListItem.ContentType; Itemadded Event SPList listName = properties.listName; string contentTypeName = properties.AfterProperties["ContentType"].ToString(); SPContentType contentType = list.ContentTypes[contentTypeName];