質問

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