Condividi tramite


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

Syntax

'Declaration
Public Overridable Sub FieldAdding ( _
    properties As SPListEventProperties _
)
'Usage
Dim instance As SPListEventReceiver
Dim properties As SPListEventProperties

instance.FieldAdding(properties)
public virtual void FieldAdding(
    SPListEventProperties properties
)

Parameters

Remarks

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

Warning

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.

See Also

Reference

SPListEventReceiver Class

SPListEventReceiver Members

Microsoft.SharePoint Namespace