SharePoint Client Object Model Validate Specific Column is available in Library

To Check or Validate that specific column is available in Document Library use below code.

private bool ValidateDocumentLibraryColumn(string DocumentLibrary , string ListColumnName)
using (ClientContext clientContext = new ClientContext(SharepointSite))

Microsoft.SharePoint.Client.Web web = clientContext.Web;

ListCollection lists = web.Lists;

List lst = lists.GetByTitle(DocumentLibrary);

Field fld = lst.Fields.GetByInternalNameOrTitle(ListColumnName);



return true;
catch (Exception exception)

return false;



Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s