Domanda

Sono bloccato in uso di SPEMAILEVentrECeiver in SharePoint 2013.

Questo il mio codice:

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);

    }
}
.

Il codice sopra produce errori sia in VS 2013 che in VS 2012.

Qualsiasi suggerimento?Aiutami

È stato utile?

Soluzione

Are you running solution in sandbox type solution?

If so, try full trust type.

Altri suggerimenti

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

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a sharepoint.stackexchange
scroll top