SPListEventReceiver.FieldAdding Method

Handles the event that occurs before a field link is added to a content type.

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

public virtual void FieldAdding(
	SPListEventProperties properties


Type: Microsoft.SharePoint.SPListEventProperties

The properties of the list event.

The FieldAdding event is not raised when a field is added to the list by adding a content type to the list.

Caution noteCaution

Do not attempt to cancel the event by setting the value of the Status property of properties to CancelNoError, since doing so only redirects the user to the "Column does not exist" error page.