共用方式為


StatusingEventReceiver.OnTaskCreating 方法

CreateNewAssignment方法前的事件處理常式。

命名空間:  Microsoft.Office.Project.Server.Events
組件:  Microsoft.Office.Project.Server.Events.Receivers (在 Microsoft.Office.Project.Server.Events.Receivers.dll 中)

語法

'宣告
Public Overridable Sub OnTaskCreating ( _
    contextInfo As PSContextInfo, _
    e As StatusCreateTaskPreEventArgs _
)
'用途
Dim instance As StatusingEventReceiver
Dim contextInfo As PSContextInfo
Dim e As StatusCreateTaskPreEventArgs

instance.OnTaskCreating(contextInfo, _
    e)
public virtual void OnTaskCreating(
    PSContextInfo contextInfo,
    StatusCreateTaskPreEventArgs e
)

參數

備註

如需建立事件處理常式的資訊,請參閱 < How to: Create a Project Server Event Handler and Log an Event

請參閱

參照

StatusingEventReceiver 類別

StatusingEventReceiver 成員

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

其他資源

SetAssignmentWorkData Schema