共用方式為


Get-SPProjectDatabaseUsage

傳回內容資料庫中所使用的 Project Web App 資料約略的大小,以百萬位元組 (MB) 為單位。

語法

Get-SPProjectDatabaseUsage
   [-AssignmentCollection <SPAssignmentCollection>]
   -Url <Uri>
   [<CommonParameters>]

Description

傳回內容資料庫中所使用的 Project Web App 資料約略的大小,以百萬位元組 (MB) 為單位。

範例

------------Example 1 -----------

Get-SPProjectDatabaseUsage -Url  https://contoso.com/sites/pwa

此範例顯示位於 之 Project Web App 網站https://contoso.com/sites/pwa內容數據中 Project Web App 數據的大小。

參數

-AssignmentCollection

管理物件以適當處置它們。 使用 SPWeb 或 SPSite 等物件可能會耗用大量的記憶體,因此在 Windows PowerShell 指令碼中使用這些物件時,必須適當地管理記憶體。 您可以使用 SPAssignment 物件將物件指派給變數,並在不需要時處置這些物件,以釋放記憶體。 使用 SPWeb、SPSite 或 SPSiteAdministration 物件時,若未使用指派集合或 Global 參數,將會自動處置這些物件。

使用 Global 參數時,所有物件會包含在全域儲存區內。 若未立即使用物件,或未使用 Stop-SPAssignment 命令處置物件,將會發生記憶體不足的狀況。

類型:SPAssignmentCollection
Position:Named
預設值:None
必要:False
接受管線輸入:True
接受萬用字元:False
適用於:SharePoint Server Subscription Edition

-Url

Project Web App 網站集合的URL。

類型:Uri
Position:Named
預設值:None
必要:True
接受管線輸入:False
接受萬用字元:False
適用於:SharePoint Server Subscription Edition

輸入

Microsoft.SharePoint.PowerShell.SPAssignmentCollection

輸出

System.Object