I have written an ItemAdded EventHandler on a "Wiki Page Library" object.
In the Event Handler, I am able to access most of the Fields of the newly added List Item. But I am not able to access the Content of the new List Item (Wiki) added to Wiki Page Library object.
In Wiki Page Library, There is a column call "Wiki Content" that hold the actual content of the wiki page.
Event Handler is getting executed when a new wiki is added to this library, I am able to get the title of the new wiki page, but not the content.
Let me know if anyone knows about how to access the content of a wiki page.
Below is the code:
public override void ItemAdded(SPItemEventProperties properties)
{
SPListItem item = properties.ListItem;
System.String Content = (string)item["Wiki Content"]; // content of the wiki page
System.String Link = (string)item["BaseName"]; //Name of wiki page
}