I have just created an event receiver to ensure that my colour palette is activated on my 2013 Web application. The below code is what I have inside
public class SitePublishingResourcesEventReceiver : SPFeatureReceiver
I keep getting the error Cannot resolve symbol 'GetFile'
public override void FeatureActivated(SPFeatureReceiverProperties properties)
{
// Get the SPColor file. Replace with the path to your SPColor file.
SPFile colorPaletteFile = Web.GetFile("_catalogs/theme/15/ColorPalette.spcolor");
if (null == colorPaletteFile || !colorPaletteFile.Exists)
{
// TODO: handle the error.
return;
}
I have googled to see if I'm missing usings or something, but I can't find anything
Thanks in advance for your help
0 commentaires:
Enregistrer un commentaire