Use Visual Studio to add Event handler er to the SharePoint list

Source: Internet
Author: User

Use Visual Studio to add Event Receiver1. open VS as an administrator to the SharePoint list, create an Event receiver AnnouncementListEvent, and click OK. 2. Deploy the solution as a field solution. Click Next and select the list items event, notification, and adding items.
3. Add using. Using System. IO; using System. Text; 4. complete code: 5. Deploy the solution. 6. Create a notification list project.
8. view the notepad at the corresponding location:
9. The above Code also adds the statement for interacting with the Log list. Previously, we wanted to create a Log list, including the Title and Log Entry columns.
PS: Create the mysplog.txt file in the edrive authoringfolder first.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.