Set-SPTranslationThrottlingSetting
设置计时器作业持续时间。
语法
Set-SPTranslationThrottlingSetting
[-AssignmentCollection <SPAssignmentCollection>]
[-Confirm]
[-SiteQuota <Int32>]
[-TenantQuota <Int32>]
[-WhatIf]
[<CommonParameters>]
说明
使用 Set-SPTranslationThrottlingSetting cmdlet 设置每个网站集的计时器作业持续时间。
示例
-----------------示例--------------------
Set-SPTranslationThrottlingSetting -SiteQuota 300 -TenantQuota 600
这限制翻译计时器作业在每个网站集) 花费的时间不超过 300 秒 (5 分钟,每个租户) 不超过 600 秒 (10 分钟。
注意:TenantQuota 必须大于或等于 SiteQuota。
参数
-AssignmentCollection
管理对象以便正确进行处理。 使用 SPWeb 或 SPSite 等对象可能会耗用大量内存,而且在 Windows PowerShell 脚本中使用这些对象需要正确管理内存。 通过使用 SPAssignment 对象,可以将对象分配给变量,然后在不需要这些对象时对它们进行处理,以释放内存。 在使用 SPWeb、SPSite 或 SPSiteAdministration 对象时,如果不使用分配集合或 Global 参数,则会自动处理这些对象。
注意: 使用 Global 参数时,所有对象都包含在全局存储中。 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 |
Required: | False |
Accept pipeline input: | True |
Accept wildcard characters: | False |
Applies to: | SharePoint Server 2010, SharePoint Server 2013, SharePoint Server 2016, SharePoint Server 2019 |
-Confirm
提示你在运行 cmdlet 之前进行确认。
Type: | SwitchParameter |
Aliases: | cf |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | SharePoint Server 2010, SharePoint Server 2013, SharePoint Server 2016, SharePoint Server 2019 |
-SiteQuota
将单个 SPSite 限制为的计时器作业处理时间) 持续时间 (秒
Type: | Int32 |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | SharePoint Server 2010, SharePoint Server 2013, SharePoint Server 2016, SharePoint Server 2019 |
-TenantQuota
单个租户限制的计时器作业处理时间) 持续时间 (秒。
Type: | Int32 |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | SharePoint Server 2010, SharePoint Server 2013, SharePoint Server 2016, SharePoint Server 2019 |
-WhatIf
显示在 cmdlet 运行时发生的情况。 此 cmdlet 未运行。
Type: | SwitchParameter |
Aliases: | wi |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | SharePoint Server 2010, SharePoint Server 2013, SharePoint Server 2016, SharePoint Server 2019 |
输入
Microsoft.SharePoint.PowerShell.SPAssignmentCollection
输出
System.Object