Catalogue des événements SharePoint Foundation

Dernière modification : jeudi 8 avril 2010

S’applique à : SharePoint Foundation 2010

Le tableau 1 répertorie les types gérés qui appartiennent au modèle objet des événements SharePoint Foundation 2010 et répertorie les membres appropriés pour chacun d’eux. Les types et les membres qui sont nouveaux dans Microsoft SharePoint Foundation 2010 sont signalés. Pour d’autres vues du modèle objet des événements SharePoint Foundation, voir Tableau des événements, des récepteurs d’événements et des hôtes d’événements SharePoint et Comparaison des méthodes de récepteur d’événements : Windows SharePoint Services 3.0 et SharePoint Foundation 2010.

Modèle objet des événements SharePoint Foundation

Tableau 1. Types et membres gérés dans le modèle objet des événements SharePoint Foundation 2010

Type

Méthodes

Propriétés/Champs

SPContentType

Non applicable

SPEventReceiverDefinitionCollection EventReceivers

SPEmailEventReceiver

SPEmailEventReceiver()

void EmailReceived (Microsoft.SharePoint.SPList list, Microsoft.SharePoint.Utilities.SPEmailMessage emailMessage, string receiverData)

Non applicable

SPEventPropertiesBase

protected abstract void MarshalData() (nouveauté dans 2010)

protected void SetUserTokens(byte[] userTokenBytes) (nouveauté dans 2010)

protected void SetUserTokens() (nouveauté dans 2010)

bool Cancel

string ErrorMessage

SPEventReceiverType EventType (nouveauté dans 2010)

protected SPUserToken EventUserToken (nouveauté dans 2010)

SPUserToken OriginatingUserToken (nouveauté dans 2010)

string ReceiverData (nouveauté dans 2010)

string RedirectUrl (nouveauté dans 2010)

Guid SiteId (nouveauté dans 2010)

SPEventReceiverStatus Status

SPEventReceiverBase

SPEventReceiverBase()

protected void DisableEventFiring()

protected void EnableEventFiring()

Non applicable

SPEventReceiverDefinition

void Delete()

void FireContextEvent (SPSite site)

void Update()

string Assembly

string Class

Guid ContextCollectionId

Guid ContextEventType

Guid ContextId

int ContextItemId

string ContextItemUrl

Guid ContextObjectId

Guid ContextType

int Credential

string Data

Guid HostId

SPEventHostType HostType

Guid Id

string Name

Guid ParentHostId

SPEventHostType ParentHostType

int SequenceNumber

Guid SiteId

string SolutionHash (nouveauté dans 2010)

SPEventReceiverSynchronization Synchronization (nouveauté dans 2010)

SPEventReceiverType Type

Guid WebId

SPEventReceiverDefinitionCollection

SPEventReceiverDefinition Add()

SPEventReceiverDefinition Add(Guid Id)

SPEventReceiverDefinition Add(Guid Id, SPList contextList)

SPEventReceiverDefinition Add(Guid Id, SPList contextList)

void Add(SPEventReceiverType receiverType, string assembly, string className)

void CopyTo(SPEventReceiverDefinition[] array, int index)

bool EventReceiverDefinitionExist(Guid eventReceiverId)

int Count

Guid HostId

SPEventHostType HostType

SPEventReceiverDefinition this[Guid eventReceiverId]

SPEventReceiverDefinition this[int index]

int ItemId

SPSite Site

SPWeb Web

SPEventReceiverStatus

Non applicable

Continue

CancelNoError

CancelWithError

CancelWithRedirectUrl (nouveauté dans 2010)

SPEventReceiverSynchronization

(nouveauté dans 2010)

Non applicable

Default (nouveauté dans 2010)

Synchronous (nouveauté dans 2010)

Asynchronous (nouveauté dans 2010)

SPEventReceiverType

Non applicable

ContextEvent

EmailReceived

FieldAdded

FieldAdding

FieldDeleted

FieldDeleting

FieldUpdated

FieldUpdating

InvalidReceiver

ItemAdded

ItemAdding

ItemAttachmentAdded

ItemAttachmentAdding

ItemAttachmentDeleted

ItemAttachmentDeleting

ItemCheckedIn

ItemCheckedOut

ItemCheckingIn

ItemCheckingOut

ItemDeleted

ItemDeleting

ItemFileConverted

ItemFileMoved

ItemFileMoving

ItemUncheckedOut

ItemUncheckingOut

ItemUpdated

ItemUpdating

ListAdded (nouveauté dans 2010)

ListAdding (nouveauté dans 2010)

ListDeleted (nouveauté dans 2010)

ListDeleting (nouveauté dans 2010)

SiteDeleted

SiteDeleting

WebAdding (nouveauté dans 2010)

WebDeleted

WebDeleting

WebMoved

WebMoving

WebProvisioned (nouveauté dans 2010)

WorkflowCompleted (nouveauté dans 2010)

WorkflowPostponed (nouveauté dans 2010)

WorkflowStarted (nouveauté dans 2010)

WorkflowStarting (nouveauté dans 2010)

SPFile

Non applicable

SPEventReceiverDefinitionCollection EventReceivers

SPItemEventProperties

void Dispose()

SPListItem GetListItemFields(string field1, params string[] fields) (nouveauté dans 2010)

void InvalidateListItem() (nouveauté dans 2010)

void InvalidateWeb() (nouveauté dans 2010)

protected override void MarshalData() (nouveauté dans 2010)

SPWeb OpenWeb()

SPItemEventDataCollection AfterProperties

string AfterUrl

SPItemEventDataCollection BeforeProperties

string BeforeUrl

SPEventContext Context

int CurrentUserId

SPList List (nouveauté dans 2010)

Guid ListId

SPListItem ListItem

int ListItemId

string ListTitle

string RelativeWebUrl

string UserDisplayName

string UserLoginName

SPWeb Web (nouveauté dans 2010)

bool Versionless

string WebUrl

SPUrlZone Zone

SPEventReceiverType EventType (hérite du parent dans 2010)

Guid SiteId (hérite du parent dans 2010)

SPItemEventReceiver

SPItemEventReceiver()

void ContextEvent(SPItemEventProperties properties)

void ItemAdded(SPItemEventProperties properties)

void ItemAdding(SPItemEventProperties properties)

void ItemAttachmentAdded(SPItemEventProperties properties)

void ItemAttachmentAdding(SPItemEventProperties properties)

void ItemAttachmentDeleted(SPItemEventProperties properties)

void ItemAttachmentDeleting(SPItemEventProperties properties)

void ItemCheckedIn(SPItemEventProperties properties)

void ItemCheckedOut(SPItemEventProperties properties)

void ItemCheckingIn(SPItemEventProperties properties)

void ItemCheckingOut(SPItemEventProperties properties)

void ItemDeleted(SPItemEventProperties properties)

void ItemDeleting(SPItemEventProperties properties)

void ItemFileConverted(SPItemEventProperties properties)

void ItemFileMoved(SPItemEventProperties properties)

void ItemFileMoving(SPItemEventProperties properties)

void ItemUncheckedOut(SPItemEventProperties properties)

void ItemUncheckingOut(SPItemEventProperties properties)

void ItemUpdated(SPItemEventProperties properties)

void ItemUpdating(SPItemEventProperties properties)

Non applicable

SPList

Non applicable

SPEventReceiverDefinitionCollection EventReceivers

SPListEventProperties

void Dispose()

void InvalidateList()

void InvalidateWeb()

protected override void MarshalData()

Guid FeatureId (nouveauté dans 2010)

SPField Field

string FieldName

string FieldXml

SPList List

Guid ListId

string ListTitle

int TemplateId (nouveauté dans 2010)

string UserDisplayName

string UserLoginName

SPWeb Web

Guid WebId

string WebUrl

SPItemEventDataCollection AfterProperties

SPEventReceiverType EventType (hérité du parent dans 2010)

Guid SiteId (hérité du parent dans 2010)

SPListEventReceiver

SPListEventReceiver()

void FieldAdded(SPListEventProperties properties)

void FieldAdding(SPListEventProperties properties)

void FieldDeleted(SPListEventProperties properties)

void FieldDeleting(SPListEventProperties properties)

void FieldUpdated(SPListEventProperties properties)

void FieldUpdating(SPListEventProperties properties)

void ListAdded(SPListEventProperties properties) (nouveauté dans 2010)

void ListAdding(SPListEventProperties properties) (nouveauté dans 2010)

void ListDeleted(SPListEventProperties properties) (nouveauté dans 2010)

void ListDeleting(SPListEventProperties properties) (nouveauté dans 2010)

Non applicable

SPListEventType

Remarque : ce type a été marqué « obsolète » dans Microsoft SharePoint Foundation 2010.

Non applicable

Non applicable

SPSite

Non applicable

SPEventReceiverDefinitionCollection EventReceivers (nouveauté dans 2010)

SPWeb

Non applicable

SPEventReceiverDefinitionCollection EventReceivers

SPWebEventProperties

void Dispose() (nouveauté dans 2010)

void InvalidateWeb() (nouveauté dans 2010)

protected override void MarshalData() (nouveauté dans 2010)

string FullUrl

string NewServerRelativeUrl

Guid ParentWebId (nouveauté dans 2010)

string ServerRelativeUrl

string UserDisplayName

string UserLoginName

SPWeb Web

Guid WebId

SPEventReceiverType EventType (hérité du parent dans 2010)

Guid SiteId (hérité du parent dans 2010)

SPWebEventReceiver

SPWebEventReceiver()

void SiteDeleted(SPWebEventProperties properties)

void SiteDeleting(SPWebEventProperties properties)

void WebAdding(SPWebEventProperties properties) (nouveauté dans 2010)

void WebDeleted(SPWebEventProperties properties)

void WebDeleting(SPWebEventProperties properties)

void WebMoved(SPWebEventProperties properties)

void WebMoving(SPWebEventProperties properties)

void WebProvisioned(SPWebEventProperties properties) (nouveauté dans 2010)

Non applicable

SPWorkflowEventProperties

(Ce type est nouveau dans 2010)

protected override void MarshalData() (nouveauté dans 2010)

SPWorkflowActivationProperties ActivationProperties (nouveauté dans 2010)

string AssociationData (nouveauté dans 2010)

SPWorkflowEventCompletionType CompletionType (nouveauté dans 2010)

Exception ErrorException (nouveauté dans 2010)

SPEventReceiverType EventType (nouveauté dans 2010)

string InitiationData (nouveauté dans 2010)

SPWorkflowPostponedEventType PostponedEvent (nouveauté dans 2010)

int TerminatedByUserId (nouveauté dans 2010)

SPWorkflow Workflow (nouveauté dans 2010)

StopEventReceiver

StopEventReceiver()

protected bool Stopped

Strings

Non applicable

EventPropertiesCannotBeChanged

EventReceiverAssemblyNameNull

EventReceiverAssemblyNotInGAC

EventReceiverAsyncBeforeInvalid (nouveauté dans 2010)

EventReceiverCancelRequest

EventReceiverClassNameNull

EventReceiverTypeInvalid

EventReceiverWorkflowContextInvalid

InvalidEventReceiverHostType

Voir aussi

Concepts

Tableau des événements, des récepteurs d’événements et des hôtes d’événements SharePoint

Comparaison des méthodes de récepteur d’événements : Windows SharePoint Services 3.0 et SharePoint Foundation 2010

Autres ressources

Événements dans SharePoint Foundation 2010