PS.ProjectContext オブジェクト (ps.js)
開発Project Web Appのインスタンスと、クライアント側のコンテキストを維持し、 Project Web Appに存在しているオブジェクトを Project Server の全社的なコレクションが含まれています。
var object = new PS.ProjectContext(url)
注釈
ProjectContextオブジェクトがJavaScriptオブジェクト モデルで Project Server の機能にアクセスするためのエントリ ポイントし、 ProjectServerリソースが時間、主要な状態を転送 (REST) インターフェイス内のエントリ ポイントします。ProjectServerプロパティと方法について詳しくは、他のインターフェイスで ProjectServer リソースを参照してください。
注意
ProjectContextに由来SP へClientContext オブジェクト (sp.js)では、SharePoint JavaScriptオブジェクト モデルへのアクセスに使用することもできるようにします。コンスまたは現在のプロパティを使用してProjectContextの新しいインスタンスを初期化することができます。
メンバー
次の表で説明されていない継承のメンバーのSP へClientContext オブジェクト (sp.js)を参照してください。
ProjectContext 方法
ProjectContextオブジェクトでは、次の方法があります。
メソッド |
説明 |
---|---|
Executes the current pending request asynchronously on the server. |
|
Retrieves the properties of a client object from the server. |
|
Retrieves an enumerable sequence of the child client objects from a collection. |
|
Waits for the specified queue job to complete, or waits for a maximum number of seconds. |
ProjectContext プロパティ
ProjectContextオブジェクトでは、次のプロパティがあります。
プロパティ |
説明 |
---|---|
Gets the collection of calendars in the Project Web App instance. |
|
Gets the current client context of the Project Server 2013 client-side runtime. |
|
Gets the collection of enterprise custom field definitions in the Project Web App instance. |
|
Gets the collection of enterprise project types (EPTs) in the Project Web App instance. |
|
Gets the collection of enterprise resources in the Project Web App instance. |
|
Gets the collection of entity types that are exposed through the CSOM for the Project Web App instance. |
|
Gets the collection of event handlers that are defined in the Project Web App instance. |
|
Gets the collection of events in the Project Web App instance. |
|
Gets the collection of lookup tables in the Project Web App instance. |
|
Gets the collection of Project Server workflow phases in the Project Web App instance. |
|
Gets the collection of project detail pages in the Project Web App instance. |
|
Gets the collection of published projects in the Project Web App instance. |
|
Gets information about the status of the Project Server service. |
|
Gets the collection of Project Server workflow stages in the Project Web App instance. |
|
Gets the collection of timesheet periods in the Project Web App instance. |
|
Gets the methods that Project Server workflows can call at run time. |
|
Gets a workflow designer that developers can call at design time. |
他のインターフェイスで ProjectServer リソース
ProjectServerリソースは、残りの部分から Project Server の機能にエントリ ポイントです。URI ProjectServerリソースの両端のシートは、 https://ServerName/pwaName/_api/ProjectServer (置換ServerNameと URI にpwaName )。たとえば、 https://ServerName/pwaName/_api/ProjectServer/Projects('263fc8d7-427c-e111-92fc-00155d3ba208')/Assignmentsは URI の GUID で指定されたプロジェクトの割り当てを取得します。
ProjectServer 方法
ProjectServerリソースには、次の方法があります。
メソッド |
説明 |
---|---|
stopDelegation |
現在の委任セッションを停止します。 |
ProjectServer プロパティ
ProjectServerリソースには、次のプロパティがあります。
プロパティ |
説明 |
---|---|
Gets the collection of calendars in the Project Web App instance. |
|
Gets the collection of enterprise custom field definitions in the Project Web App instance. |
|
Gets the collection of enterprise project types (EPTs) in the Project Web App instance. |
|
Gets the collection of enterprise resources in the Project Web App instance. |
|
Gets the collection of entity types that are exposed through the CSOM for the Project Web App instance. |
|
Gets the collection of event handlers that are defined in the Project Web App instance. |
|
Gets the collection of events in the Project Web App instance. |
|
isDelegate |
現在のユーザーのProject Web Appで委任セッションを開始するかどうかを示す値を取得します。 |
isReadOnly |
Project Server のデータベースが読み取り専用モードであるかどうかを示す値を取得します。 |
Gets the collection of lookup tables in the Project Web App instance. |
|
Gets the collection of Project Server workflow phases in the Project Web App instance. |
|
Gets the collection of project detail pages in the Project Web App instance. |
|
Gets the collection of published projects in the Project Web App instance. |
|
Gets the collection of Project Server workflow stages in the Project Web App instance. |
|
Gets the collection of timesheet periods in the Project Web App instance. |
|
Gets the methods that Project Server workflows can call at run time. |
|
Gets a workflow designer that developers can call at design time. |
関連項目
参照先
Microsoft.ProjectServer.Client.ProjectContext
Microsoft.ProjectServer.Client.ProjectServer
その他の技術情報
Project Server 2013 JavaScript オブジェクト モデルの概要
[方法] Project Server 2013 の JavaScript オブジェクト モデルを使用してプロジェクトの作成、取得、更新、および削除を行う