Pregunta

Estoy atascado en el uso de SpemailEventReceiver en SharePoint 2013.

este mi código:

public class EREmail : SPEmailEventReceiver // this error because namespace can't found
{
    public override void EmailReceived(SPList list, SPEmailMessage emailMessage, String receiverData) // this error because namespace SPEmailMessage can't found
    {
        base.EmailReceived(list, emailMessage, receiverData);

    }
}

El código anterior produce un error en VS 2013 y VS 2012.

¿Alguna sugerencia?ayúdame

¿Fue útil?

Solución

Are you running solution in sandbox type solution?

If so, try full trust type.

Otros consejos

Have you added both the using directives mentioned in the MSDN documentation?

This example requires using directives (Imports in Visual Basic) for the Microsoft.SharePoint and Microsoft.SharePoint.Utilities namespaces.

It seems to not be enough to use Microsoft.SharePoint, you also need Microsoft.SharePoint.Utilities

Licenciado bajo: CC-BY-SA con atribución
scroll top