StatusingEventReceiver.OnAssignmentDeleting 方法

UpdateStatus,由资源中删除工作分配时为前期事件处理程序。

命名空间:  Microsoft.Office.Project.Server.Events
程序集:  Microsoft.Office.Project.Server.Events.Receivers(位于 Microsoft.Office.Project.Server.Events.Receivers.dll 中)

语法

声明
Public Overridable Sub OnAssignmentDeleting ( _
    contextInfo As PSContextInfo, _
    e As StatusDeleteTaskPreEventArgs _
)
用法
Dim instance As StatusingEventReceiver
Dim contextInfo As PSContextInfo
Dim e As StatusDeleteTaskPreEventArgs

instance.OnAssignmentDeleting(contextInfo, _
    e)
public virtual void OnAssignmentDeleting(
    PSContextInfo contextInfo,
    StatusDeleteTaskPreEventArgs e
)

参数

备注

OnAssignmentDeleting调用UpdateStatus方法和changeXML参数包括AssnConstID.s_apid_removed_by_res属性 ID (PID) 时发生。该 PID 是供内部使用Project Web App,并不支持UpdateStatus调用中的第三方使用。但是,您可以编写事件处理程序OnAssignmentDeleting。

有关创建事件处理程序的信息,请参阅How to: Create a Project Server Event Handler and Log an Event

另请参阅

引用

StatusingEventReceiver 类

StatusingEventReceiver 成员

Microsoft.Office.Project.Server.Events 命名空间

其他资源

Statusing ChangeList Schema

Supported Project Fields and Field Information for Statusing ChangeXML