Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Adds an event receiver definition to the collection that is identifiable by the specified globally unique identifier.
Namespace: Microsoft.SharePoint
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No
Syntax
'Declaration
<SubsetCallableExcludeMemberAttribute(SubsetCallableExcludeMemberType.PerSpec)> _
Public Function Add ( _
Id As Guid _
) As SPEventReceiverDefinition
'Usage
Dim instance As SPEventReceiverDefinitionCollection
Dim Id As Guid
Dim returnValue As SPEventReceiverDefinition
returnValue = instance.Add(Id)
[SubsetCallableExcludeMemberAttribute(SubsetCallableExcludeMemberType.PerSpec)]
public SPEventReceiverDefinition Add(
Guid Id
)
Parameters
Id
Type: System.GuidA Guid that represents the event receiver definition.
Return Value
Type: Microsoft.SharePoint.SPEventReceiverDefinition
An SPEventReceiverDefinition object representing the event receiver definition.
Remarks
This method has no SPList objects on which the event receiver should act.
See Also
Reference
SPEventReceiverDefinitionCollection Class
SPEventReceiverDefinitionCollection Members