I have the following:
var contents = new[]
{
"Theme Gallery", "Converted Forms", "Page Output Cache", "Master Page",
"(no title)", ".css", ".xml", ".wsp", ".jpg", ".png", ".master"
, ".000" , "Page Output Cache" , "_catalogs", "Style Library", "Cache Profiles"
};
string fileUrl = siteCollectionEntity.Url + '/' + item.Url;
And I'd like to write a statement that will prevent a loop from continuing if a URL contains any of the words found in contents. Apologies for the following poor syntax, but I think it will help to explain better what I'm trying to do... Basically something like the following:
if (fileUrl.Contains(contents)) continue;
Is something like this possible?