Set-SPMicrofeedOptions
設定摘要快取設定。
Syntax
Set-SPMicrofeedOptions
[-AssignmentCollection <SPAssignmentCollection>]
[-AsyncRefs <Boolean>]
[-MaxCacheMs <Int32>]
[-MaxMentions <Int32>]
[-MaxPostLength <Int32>]
[-MaxTags <Int32>]
-ProfileServiceApplicationProxy <SPServiceApplicationProxyPipeBind>
[-SiteSubscription <SPSiteSubscriptionPipeBind>]
[<CommonParameters>]
Description
使用 Set-SPMicrofeedOptions Cmdlet 來設定目前使用者設定檔應用程式的摘要快取設定。
範例
--------------------範例---------------------
$proxy = Get-SPServiceApplicationProxy | ?{$_.TypeName -eq 'User Profile Service Application Proxy'}
Set-SPMicrofeedOptions -ProfileServiceApplicationProxy $proxy -MaxTags 4
本範例會針對指定的 User Profile Service 應用程式 Proxy,將每個貼文的標記上限設定為 4。
參數
-AssignmentCollection
管理物件以適當處置它們。 使用 SPWeb 或 SPSite 等物件可能會耗用大量的記憶體,因此在 Windows PowerShell 指令碼中使用這些物件時,必須適當地管理記憶體。 您可以使用 SPAssignment 物件將物件指派給變數,並在不需要時處置這些物件,以釋放記憶體。 使用 SPWeb、SPSite 或 SPSiteAdministration 物件時,若未使用指派集合或 Global 參數,將會自動處置這些物件。
注意: 使用 Global 參數時,所有物件都會包含在全域存放區中。 若未立即使用物件,或未使用 Stop-SPAssignment 命令處置物件,將會發生記憶體不足的狀況。
Type: | SPAssignmentCollection |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | True |
Accept wildcard characters: | False |
Applies to: | SharePoint Server 2016, SharePoint Server 2019 |
-AsyncRefs
透過非同步執行緒執行參考文章。 如果值設定為 True,執行緒中的每個 @mention 值都會在自己的 .NET threadpool 非同步執行緒中處理。
Type: | Boolean |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | SharePoint Server 2016, SharePoint Server 2019 |
-MaxCacheMs
指定快取迴圈時間的可允許範圍。
Type: | Int32 |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | SharePoint Server 2016, SharePoint Server 2019 |
-MaxMentions
指定每個貼文和回復的最大數目 @mentions 。
Type: | Int32 |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | SharePoint Server 2016, SharePoint Server 2019 |
-MaxPostLength
設定 Microfeed 文章的字元數上限。
Type: | Int32 |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | SharePoint Server 2016, SharePoint Server 2019 |
-MaxTags
指定每個文章和回覆的 #tags 數目上限。
Type: | Int32 |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | SharePoint Server 2016, SharePoint Server 2019 |
-ProfileServiceApplicationProxy
為 Proxy 指定唯一識別項。
Type: | SPServiceApplicationProxyPipeBind |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
Applies to: | SharePoint Server 2016, SharePoint Server 2019 |
-SiteSubscription
指定此服務應該在哪個帳戶下執行。 此參數在主控環境中是必要的,在非主控環境中則為選用。
Type: | SPSiteSubscriptionPipeBind |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | True |
Accept wildcard characters: | False |
Applies to: | SharePoint Server 2016, SharePoint Server 2019 |
輸入
Microsoft.SharePoint.PowerShell.SPServiceApplicationProxyPipeBind
Microsoft.SharePoint.PowerShell.SPSiteSubscriptionPipeBind Microsoft.SharePoint.PowerShell.SPAssignmentCollection
輸出
System.Object