SPEventReceiverDefinition.Data Property

Gets or sets the data that is associated with the receiver.

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online

Syntax

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

value = instance.Data

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

Property Value

Type: System.String
A string that contains the collection of key-value pairs that provide additional information for the event receiver.

Exceptions

Exception Condition
ArgumentException

Length of the string that contains the data is greater than 255 characters.

Remarks

This property can be set to a null reference (Nothing in Visual Basic). If the length of the string that contains the data is greater than 255 characters, an ArgumentException is thrown.

See Also

Reference

SPEventReceiverDefinition Class

SPEventReceiverDefinition Members

Microsoft.SharePoint Namespace

Other Resources

Data Element

Event Registrations