步步为营 SharePoint 开发学习笔记系列 八、SharePoint Ev
概要
SharePoint的EventHandler主要有Web Level,List Level,List Item Level,Email几种。SharePoint的event handler主要是继承SPWebEventReceiver, SPEmailEventReceiver, SPListEventReceiver和SPItemEventReceiver类去实现其中相应的方法来完成我们的需求。
开发设计
注册事件.
view sourceprint?01 /// <summary>
02 /// EventHandler
03 /// </summary>
04 class EventHandler
05 {
06 private string _assemblyFullName = string.Empty;
07 public string AssemblyFullName
08 {
09 get
10 {
11 return _assemblyFullName;
12 }
13 }
14 private string _className = string.Empty;
15 public string ClassName
16 {
17 get
18 {
19 return _className;
20 }
21 }
22 private SPEventReceiverType _eventType;
23 private SPEventReceiverType EventType
24 {
25 get
26 {
27 return _eventType;
28 }
29 }
30 private string _data = string.Empty;
31 public string Data
32 {
33 get
34 {
35 return _data;
36 }
37 }
38 private bool _deleteExistingEvents = false;
39 public bool DeleteExistingEvents
40 {
41 get
42 {
43 return _deleteExistingEvents;
44 }
45 }
46&nbs
相关新闻>>
- 发表评论
-
- 最新评论 更多>>