I want to check to see if a field exists in my program, but If I use :
if (item[_strContainingFieldName] != null)
item[_strContainingFieldName] = fieldValue;
I receive an error stating
The property or field has not been initialized. It has not been requested or the request has not been executed. It may need to be explicitly requested.
So I wanted to use
properties.ListItem.Fields.ContainsField but forgot I can only use these in the server API.
Is there something similar which I can make use of right now? The tool will be a "throw away" application since we're making updates behind the scenes, so I'm not too worried about catching every possibility and logging everything.
Note: The language is C#