ProjectServer class
由用戶端程式碼內部使用。若要初始化開發與專案伺服器 CSOM 的用戶端內容,請使用ProjectContext。
Inheritance hierarchy
System.Object
Microsoft.SharePoint.Client.ClientObject
Microsoft.ProjectServer.Client.ProjectServer
Namespace: Microsoft.ProjectServer.Client
Assembly: Microsoft.ProjectServer.Client (in Microsoft.ProjectServer.Client.dll)
Syntax
'宣告
<ScriptTypeAttribute("PS.ProjectServer", ServerTypeId := "{3a609e5f-e2a1-497c-87a2-e5e8a781c096}")> _
Public NotInheritable Class ProjectServer _
Inherits ClientObject
'用途
Dim instance As ProjectServer
[ScriptTypeAttribute("PS.ProjectServer", ServerTypeId = "{3a609e5f-e2a1-497c-87a2-e5e8a781c096}")]
public sealed class ProjectServer : ClientObject
備註
您應該使用ProjectContext類別中Microsoft Project Server 2013CSOM 的程式開發。因為物件是繼承自 SharePoint ClientContext物件,它可以維持與專案伺服器 CSOM 和 SharePoint CSOM 的開發的內容。
注意事項 |
---|
ProjectContext類別的好處是它包含的WaitForQueue方法。如果您使用ProjectServer類別,您必須開發自己的常式,以等候佇列工作完成。 |
Thread safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.