Set-SPMicrofeedOptions

设置源缓存设置。

语法

Set-SPMicrofeedOptions
   [-AssignmentCollection <SPAssignmentCollection>]
   [-AsyncRefs <Boolean>]
   [-MaxCacheMs <Int32>]
   [-MaxMentions <Int32>]
   [-MaxPostLength <Int32>]
   [-MaxTags <Int32>]
   -ProfileServiceApplicationProxy <SPServiceApplicationProxyPipeBind>
   [-SiteSubscription <SPSiteSubscriptionPipeBind>]
   [<CommonParameters>]

说明

使用Set-SPMicrofeedOptions cmdlet 设置当前用户配置文件应用程序的源缓存设置。

示例

--------------------示例---------------------

$proxy = Get-SPServiceApplicationProxy | ?{$_.TypeName -eq 'User Profile Service Application Proxy'}
Set-SPMicrofeedOptions -ProfileServiceApplicationProxy $proxy -MaxTags 4

本示例设置每个帖子的最大标记数,并为指定的用户配置文件服务应用程序代理答复为 4。

参数

-AsyncRefs

通过异步线程执行引用帖子。 如果值设置为 True,则线程中的每个@mention都会在其自己的 .NET 线程池异步线程中处理。

Type:Boolean
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
Applies to:SharePoint Server Subscription Edition

-MaxCacheM

指定缓存循环时间的允许范围。

Type:Int32
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
Applies to:SharePoint Server Subscription Edition

-MaxMentions

指定每篇帖子和回复的最大 @mentions 数。

Type:Int32
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
Applies to:SharePoint Server Subscription Edition

-MaxPostLength

设置微源帖子中的最大字符数。

Type:Int32
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
Applies to:SharePoint Server Subscription Edition

-MaxTags

指定每篇帖子和回复的最大标签数。

Type:Int32
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
Applies to:SharePoint Server Subscription Edition

-ProfileServiceApplicationProxy

指定代理的唯一标识符。

Type:SPServiceApplicationProxyPipeBind
Position:Named
Default value:None
Accept pipeline input:True
Accept wildcard characters:False
Applies to:SharePoint Server Subscription Edition

-SiteSubscription

指定要在其下运行此服务的帐户。 在宿主环境中,此参数是强制参数;在非宿主环境中,此参数是可选参数。

Type:SPSiteSubscriptionPipeBind
Position:Named
Default value:None
Accept pipeline input:True
Accept wildcard characters:False
Applies to:SharePoint Server Subscription Edition

-工作分配

Manages objects for the purpose of proper disposal. Use of objects, such as SPWeb or SPSite, can use large amounts of memory and use of these objects in Windows PowerShell scripts requires proper memory management. Using the SPAssignment object, you can assign objects to a variable and dispose of the objects after they are needed to free up memory. When SPWeb, SPSite, or SPSiteAdministration objects are used, the objects are automatically disposed of if an assignment collection or the Global parameter is not used.

注意: 使用全局参数时,所有对象都包含在全局存储中。 If objects are not immediately used, or disposed of by using the Stop-SPAssignment command, an out-of-memory scenario can occur.

Type:SPAssignmentCollection
Position:Named
Default value:None
Accept pipeline input:True
Accept wildcard characters:False
Applies to:SharePoint Server Subscription Edition

输入

Microsoft.SharePoint.PowerShell.SPServiceApplicationProxyPipeBind

Microsoft.SharePoint.PowerShell.SPSiteSubscriptionPipeBind Microsoft.SharePoint.PowerShell.SPAssignmentCollection

输出

System.Object