Thursday, November 10, 2011

SPBuiltInFieldId Class

This is very useful class which avoid you to write field name directly like this: item["Title"].ToString(). With SPBuiltInFieldId class you can write:   item[SPBuiltInFieldId.Title].ToString(). There are also IDs of other columns such are Created By, Modified By etc.
I cant say how many times I was thinking how to exactly write those columns so this class makes it easier :)
Here is the link to better understanding:
http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.spbuiltinfieldid.aspx

No comments:

Post a Comment