SPEventReceiverDefinitionCollection.Add method (SPEventReceiverType, String, String)
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
'Declaration Public Sub Add ( _ receiverType As SPEventReceiverType, _ assembly As String, _ className As String _ ) 'Usage Dim instance As SPEventReceiverDefinitionCollection Dim receiverType As SPEventReceiverType Dim assembly As String Dim className As String instance.Add(receiverType, assembly, className)
public void Add( SPEventReceiverType receiverType, string assembly, string className )
An SPEventReceiverType value that specifies the type of event receiver.
A string that contains the name of the assembly.
A string that contains the name of the class.
This overload of the Add method adds the new object to the in-memory collection of event receiver definitions, in addition to adding the item to the backing store when the Update method is called on the item.