Assignment 類別

包含草稿及發佈的工作分派的一般的屬性。

繼承階層架構

System.Object
  Microsoft.SharePoint.Client.ClientObject
    Microsoft.ProjectServer.Client.Assignment
      Microsoft.ProjectServer.Client.DraftAssignment
      Microsoft.ProjectServer.Client.PublishedAssignment

命名空間:  Microsoft.ProjectServer.Client
組件:  Microsoft.ProjectServer.Client (在 Microsoft.ProjectServer.Client.dll 中)

語法

'宣告
<ScriptTypeAttribute("PS.Assignment", ServerTypeId := "{aaced30f-e1e9-484f-b262-ae4e62b3359a}")> _
Public Class Assignment _
    Inherits ClientObject
'用途
Dim instance As Assignment
[ScriptTypeAttribute("PS.Assignment", ServerTypeId = "{aaced30f-e1e9-484f-b262-ae4e62b3359a}")]
public class Assignment : ClientObject

備註

DraftAssignment類別和PublishedAssignment類別被衍生自Assignment類別。所有Assignment類別中的屬性是唯讀屬性。若要設定工作分派屬性的值,請使用DraftAssignment物件。

如需Microsoft Project 2013中欄位的詳細資訊,請參閱 <可用欄位參照

執行緒安全

這類型的任何公用 static (共用 於 Visual Basic 中) 成員是安全執行緒。不保證任何執行個體成員都是安全執行緒。

請參閱

參照

Assignment 成員

Microsoft.ProjectServer.Client 命名空間

DraftAssignment

PublishedAssignment

DraftAssignmentCollection

PublishedAssignmentCollection

AssignmentCreationInformation