UserDelegationEventReceiver.OnDeactivated method

A post-event handler for delegate deactivation.

Namespace:  Microsoft.Office.Project.Server.Events
Assembly:  Microsoft.Office.Project.Server.Events.Receivers (in Microsoft.Office.Project.Server.Events.Receivers.dll)

Syntax

'Declaration
Public Overridable Sub OnDeactivated ( _
    contextInfo As PSContextInfo, _
    e As UserDelegationDeactivatePostEventArgs _
)
'Usage
Dim instance As UserDelegationEventReceiver
Dim contextInfo As PSContextInfo
Dim e As UserDelegationDeactivatePostEventArgs

instance.OnDeactivated(contextInfo, e)
public virtual void OnDeactivated(
    PSContextInfo contextInfo,
    UserDelegationDeactivatePostEventArgs e
)

Parameters

Remarks

Important

The OnDeactivated event receiver is not supported in the SharePoint Permission Mode, which is used by Project Online and a default on-premises installation of Project Server 2013. For more information, see SharePoint Permission Mode in the What's new for IT pros in Project Server 2013 article on TechNet.

CreateDelegations or UpdateDelegations methods can set a time to start or stop a user delegation, in the UserDelegationDataSet. The activation or deactivation of a delegation occurs by an internal process at those times.

For an example that uses the OnDeactivated event handler, see Project Server 2010 Delegation Audit Event Handler

See also

Reference

UserDelegationEventReceiver class

UserDelegationEventReceiver members

Microsoft.Office.Project.Server.Events namespace