문제

SharePoint 2013에서 spemaileventReceiver를 사용하여 멈 춥니 다.

이 코드 :

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

    }
}
.

위의 코드는 VS 2013 및 VS 2012에서 오류를 생성합니다.

어떤 제안?도와주세요

도움이 되었습니까?

해결책

Are you running solution in sandbox type solution?

If so, try full trust type.

다른 팁

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

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 sharepoint.stackexchange
scroll top