Get-SPOWebClassicPageModernViewRendering

此 Cmdlet 會取得 Web 上傳統頁面的儲存新式檢視轉譯設定。

語法

Default (預設值)

Get-SPOWebClassicPageModernViewRendering
    -WebUrl <String>
    [<CommonParameters>]

Description

此 Cmdlet 會傳回儲存在單一 Web 上的新式檢視轉譯設定。 Web 可以是網站集合或任何子網站的根 Web。

此設定僅適用于您指定的 Web。 父系 Web、同層級 Web 和子網站不會受到影響,也不會包含在結果中。

此 Cmdlet 只會報告儲存的設定。 結果之無法 Enabled 保證每個頁面都會以新式檢視呈現,因為頁面類型、頁面資格、要求層級退出和服務保護措施也會影響呈現。

使用 Set-SPOWebClassicPageModernViewRendering -Operation Enable 或 -Operation Disable 儲存明確覆寫。 用 -Operation UseTenantDefault 來移除覆寫;下次讀取會報告 NotSet,而不是 Disabled。

範例

範例 1

Get-SPOWebClassicPageModernViewRendering -WebUrl "https://contoso.sharepoint.com/sites/marketing"

此範例會取得行銷網站根網站的已儲存設定。

範例 2

Get-SPOWebClassicPageModernViewRendering -WebUrl "https://contoso.sharepoint.com/sites/marketing/europe"

此範例會取得 [歐洲] 子網站的已儲存設定。 結果只會描述該子網站。

參數

-WebUrl

適用對象:SharePoint Online

指定要檢查的 Web 絕對 URL。 URL 必須指向現有的網站。 指向不存在之頁面、文件庫或 Web 的 URL 會傳回錯誤。

參數屬性

類型:System.String
預設值:None
支援萬用字元:False
不要顯示:False

參數集

(All)
Position:Named
必要:True
來自管線的值:False
來自管線按屬性名稱的值:False
來自剩餘引數的值:False

CommonParameters

此 Cmdlet 支援常見參數: -Debug、-ErrorAction、-ErrorVariable、-InformationAction、-InformationVariable、-OutBuffer、-OutVariable、-PipelineVariable、-ProgressAction、-Verbose、-WarningAction 和 -WarningVariable。 如需詳細資訊,請參閱 about_CommonParameters。

輸入

None

輸出

System.Object