Set-SPOStorageEntity
租户属性允许租户管理员在可由各种 SharePoint 框架组件读取的应用程序目录中添加属性。 由于租户属性存储在租户应用目录中,因此必须在以下 cmdlet 中提供租户应用程序目录网站集 URL 或网站集应用程序目录 URL。
语法
Set-SPOStorageEntity
-Site <SpoSitePipeBind>
-Key <string>
-Value <string>
-Comments <string>
-Description <string>
[-WhatIf]
[-Confirm]
[<CommonParameters>]
说明
此 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