Share via


SPWebEventProperties members

Contains properties for Web site events.

The SPWebEventProperties type exposes the following members.

Properties

  Name Description
Public property Cancel Obsolete. Gets or sets a Boolean value that indicates whether to cancel the event. (Inherited from SPEventPropertiesBase.)
Public property ErrorMessage Gets or sets the error message that Microsoft SharePoint Foundation displays when an event is cancelled. (Inherited from SPEventPropertiesBase.)
Public property EventType Gets the type of the event. (Inherited from SPEventPropertiesBase.)
Protected property EventUserToken Represents the current user at the time the specified event is fired. (Inherited from SPEventPropertiesBase.)
Public property FullUrl Gets the absolute URL of the Web site for which the event occurs.
Public property NewServerRelativeUrl Gets a server-relative URL that represents the address of the Web site after it has been moved.
Public property OriginatingUserToken Gets the token of the user who makes the request. (Inherited from SPEventPropertiesBase.)
Public property ParentWebId Gets the unique identifier of parent Web. This property is only valid when used with the WebAdding(SPWebEventProperties) event. To get the ID for the After event, WebProvisioned(SPWebEventProperties), use the WebId property.
Public property ReceiverData Gets a string that contains data about the event. (Inherited from SPEventPropertiesBase.)
Public property RedirectUrl Obsolete. A URL to redirect to when the status of SPEventReceiverStatus is CancelWithRedirectUrl. (Inherited from SPEventPropertiesBase.)
Public property ServerRelativeUrl Gets a server-relative URL that represents the address of the Web site before it was moved, or gets the current server-relative URL if a Web site is renamed.
Public property SiteId Gets the site ID of the event. (Inherited from SPEventPropertiesBase.)
Public property Status Gets or sets the status of trapping the event. (Inherited from SPEventPropertiesBase.)
Public property UserDisplayName Gets the display name of the user whose action caused the event.
Public property UserLoginName Gets the user name of the user whose action caused the event.
Public property Web Gets the Web site for which the event occurred.
Public property WebId Gets the ID of the Web site for which the event occurred.

Top

Methods

  Name Description
Public method Dispose Disposes of the object or objects in use and releases their resources.
Public method Equals (Inherited from Object.)
Protected method Finalize (Inherited from Object.)
Public method GetHashCode (Inherited from Object.)
Public method GetType (Inherited from Object.)
Public method InvalidateWeb Releases the current SPWeb object.
Protected method MemberwiseClone (Inherited from Object.)
Public method ToString (Inherited from Object.)

Top

See also

Reference

SPWebEventProperties class

Microsoft.SharePoint namespace