Share via


SPEventReceiverDefinition.Name property

Gets or sets the name of the event receiver.

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

'Declaration
Public Property Name As String
    Get
    Set
'Usage
Dim instance As SPEventReceiverDefinition
Dim value As String

value = instance.Name

instance.Name = value
public string Name { get; set; }

Property value

Type: System.String
A string that contains the name of the event receiver.

Remarks

Event receivers can be added to or retrieved from the SPEventReceiverDefinitionCollection by index or by Guid.

See also

Reference

SPEventReceiverDefinition class

SPEventReceiverDefinition members

Microsoft.SharePoint namespace

Other resources

Registering an Event Handler