Set-SPOStorageEntity
租使用者屬性可讓租使用者系統管理員在應用程式目錄中新增可由各種SharePoint 架構元件讀取的屬性。 由於租使用者屬性會儲存在租使用者應用程式目錄中,因此您必須在下列 Cmdlet 中提供租使用者應用程式類別目錄網站集合 URL 或網站集合應用程式目錄 URL。
Syntax
Set-SPOStorageEntity
-Site <SpoSitePipeBind>
-Key <string>
-Value <string>
-Comments <string>
-Description <string>
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Description
此 Cmdlet 可用來設定屬性包中的值。
範例
範例 1
Set-SPOStorageEntity -Site "https://tenant-name.sharepoint.com/sites/app-catalog" -Key "MyCustomKey" -Value "{'MyKey':1234}" -Comments "This is an example" -Description "This is an example"
本範例會將專案新增至屬性包。
參數
-Comments
此屬性包專案的批註。
Type: | String |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | SharePoint Online |
-Confirm
在執行命令之前,提示您確認操作。
如需詳細資訊,請輸入下列命令:get-help about_commonparameters
。
Type: | SwitchParameter |
Aliases: | cf |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | SharePoint Online |
-Description
屬性的描述。
Type: | String |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | SharePoint Online |
-Key
屬性包中應新增或更新的索引鍵。
Type: | String |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | SharePoint Online |
-Site
租使用者或網站集合應用程式目錄的 URL。
Type: | SpoSitePipeBind |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | SharePoint Online |
-Value
要設定的值。
Type: | String |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | SharePoint Online |
-WhatIf
顯示訊息會描述命令的功效而不執行命令。
如需詳細資訊,請輸入下列命令:get-help about_commonparameters
。
Type: | SwitchParameter |
Aliases: | wi |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | SharePoint Online |
輸入
None
輸出
System.Object