共用方式為


Set-SPOStorageEntity

租使用者屬性可讓租用戶系統管理員在應用程式目錄中新增可由各種 SharePoint 架構元件讀取的屬性。 由於租使用者屬性會儲存在租使用者應用程式目錄中,因此您必須在下列 Cmdlet 中提供租使用者應用程式類別目錄網站集合 URL 或網站集合應用程式目錄 URL。

語法

Default (預設值)

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

適用:SharePoint Online

此屬性包專案的批注。

參數屬性

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

參數集

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

-Confirm

適用:SharePoint Online

在執行命令之前,提示您確認操作。 如需詳細資訊,請輸入下列命令:get-help about_commonparameters

參數屬性

類型:System.Management.Automation.SwitchParameter
預設值:None
支援萬用字元:False
不要顯示:False
別名:cf

參數集

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

-Description

適用:SharePoint Online

屬性的描述。

參數屬性

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

參數集

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

-Key

適用:SharePoint Online

屬性包中應新增或更新的索引鍵。

參數屬性

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

參數集

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

-Site

適用:SharePoint Online

租使用者或網站集合應用程式目錄的 URL。

參數屬性

類型:Microsoft.Online.SharePoint.PowerShell.SpoSitePipeBind
預設值:None
支援萬用字元:False
不要顯示:False

參數集

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

-Value

適用:SharePoint Online

要設定的值。

參數屬性

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

參數集

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

-WhatIf

適用:SharePoint Online 顯示 Cmdlet 執行時會發生什麼情況。 未執行 Cmdlet。

參數屬性

類型:System.Management.Automation.SwitchParameter
預設值:None
支援萬用字元:False
不要顯示:False
別名:無線

參數集

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

CommonParameters

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

輸入

None

輸出

System.Object