SPEventReceiverDefinition.Credential Property
Gets or sets the credential for the SPEventReceiverDefinition object.
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online
SharePoint Foundation does not perform any authentication on its own. It relies on IIS or ASP.NET Framework to perform authentication.
This property is an optional field within an EventReceiver Element object.