I have implemented ItemAdded event on Discussion board
public override void ItemAdded(SPItemEventProperties properties)
when added Reply for particular post I need to read metadata value of its parent list item. For eg: CustomColumn is ForumCategory
and value is ".NET", so I need to get its value when any reply is added under this categoty.
I wrote below
if(properties.ListItem.ContentType.Name == "Message")
{
//how to read its parent item's column's value
}
I will use this in sending mail that a new reply is added under category ".NET"