SPEventReceiverDefinition.Data property
Gets or sets the data that is associated with the receiver.
Namespace: Microsoft.SharePoint
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
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