vendredi 18 décembre 2015

Is this CSOM if conditional code correct?

i have listed all subsites from a sharepoint site inside a list- weblist. i want to check whether if the list contains neither of the site name in it.I tried this code. Is it a correct one? If not can you correct me.

if ( (weblist.Contains("Sample Site 1")) || (weblist.Contains("Sample Site 2")) )

Aucun commentaire:

Enregistrer un commentaire