Share via


EventReceiverDefinitionCollection.GetById method

Returns the event receiver with the specified identifier.

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

Syntax

'Declaration
Public Function GetById ( _
    eventReceiverId As Guid _
) As EventReceiverDefinition
'Usage
Dim instance As EventReceiverDefinitionCollection
Dim eventReceiverId As Guid
Dim returnValue As EventReceiverDefinition

returnValue = instance.GetById(eventReceiverId)
public EventReceiverDefinition GetById(
    Guid eventReceiverId
)

Parameters

  • eventReceiverId
    Type: System.Guid

    The identifier of the event receiver.

Return value

Type: Microsoft.SharePoint.Client.EventReceiverDefinition
The event receiver definition.

See also

Reference

EventReceiverDefinitionCollection class

EventReceiverDefinitionCollection members

Microsoft.SharePoint.Client namespace