Set-SPOTenantContentTypeReplicationParameters
选择要复制的内容类型
语法
ReplicateSelectedContentTypes (默认值)
Set-SPOTenantContentTypeReplicationParameters
-ReplicatedContentTypes <String[]>
[<CommonParameters>]
ReplicateAllContentTypes
Set-SPOTenantContentTypeReplicationParameters
[-ReplicateAllContentTypes]
[<CommonParameters>]
说明
在运行 cmdlet 之前,请先使用“Connect-SPOService”连接到 SharePoint Online。 默认情况下,主要位置中的所有已发布内容类型都将复制到附属位置。
示例
示例 1
Set-SPOTenantContentTypeReplicationParameters -ReplicatedContentTypes "ct1","ct2"
租户管理员可以使用此 cmdlet 仅选择某些仅用于复制以覆盖默认设置的内容类型
示例 2
Set-SPOTenantContentTypeReplicationParameters -ReplicateAllContentTypes
租户管理员还可以重置以复制所有内容类型。
参数
-ReplicateAllContentTypes
适用:SharePoint Online
ReplicateAllContentTypes 参数指定是否应复制所有内容类型。
参数属性
| 类型: | System.Management.Automation.SwitchParameter |
| 默认值: | None |
| 支持通配符: | False |
| 不显示: | False |
参数集
ReplicateAllContentTypes
| Position: | Named |
| 必需: | True |
| 来自管道的值: | False |
| 来自管道的值(按属性名称): | False |
| 来自剩余参数的值: | False |
-ReplicatedContentTypes
适用:SharePoint Online
指定应复制的内容类型的逗号分隔列表。
参数属性
| 类型: | System.String[] |
| 默认值: | None |
| 支持通配符: | False |
| 不显示: | False |
参数集
ReplicateSelectedContentTypes
| Position: | Named |
| 必需: | True |
| 来自管道的值: | False |
| 来自管道的值(按属性名称): | False |
| 来自剩余参数的值: | False |
CommonParameters
此 cmdlet 支持通用参数:-Debug、-ErrorAction、-ErrorVariable、-InformationAction、-InformationVariable、-OutBuffer、-OutVariable、-PipelineVariable、-ProgressAction、-Verbose、-WarningAction 和 -WarningVariable。 有关详细信息,请参阅 about_CommonParameters。