Aqu*_*s24 1 tridion tridion-2011
我在一个出版物的结构组中创建了一些页面.我想使用核心服务取消发布所有这些已发布的页面.谁能帮我吗?
您可以使用CoreService客户端的.UnPublish方法,将您希望从中取消发布Pages的StructureGroup的URI传递给它.这就是CoreService API的参考资料(值得一读......):
从给定目标中取消发布IdentifiableObjectData实例的集合.
IEnumerable<PublishTransactionData> UnPublish(
IEnumerable<string> ids,
UnPublishInstructionData unPublishInstruction,
IEnumerable<string> targets,
Nullable<PublishPriority> priority,
ReadOptions readOptions
)
Run Code Online (Sandbox Code Playgroud)
参数
ids
Type: System.Collections.Generic.IEnumerable<String>
要取消发布的项目标识符的集合(TCM URI或WebDav URL).
unPublishInstruction
Type: Tridion.ContentManager.Data.Publishing.UnPublishInstructionData
非发布操作的指令.
targets
Type: System.Collections.Generic.IEnumerable<String>
一组目标标识符,表示要从中取消发布的发布目标或目标类型.这不能包含两者的组合.
priority
Type: System.Nullable<PublishPriority>
取消发布操作的优先级.传递null将使用发布目标的优先级.
readOptions
Type: Tridion.ContentManager.CoreService.ReadOptions
指定取消发布后如何回读发布事务.如果参数为null,则使用None读取项目.
返回值
PublishTransactionData的集合
我没有为您提供复制/粘贴代码段,但鉴于Jeremy摘自相关方法的API文档以及发布项目的这些示例,它应该不会非常困难:
请记住,如果您首先自己完成一些工作,然后向我们展示您遇到的问题,那么Stack Overflow效果最佳.
| 归档时间: |
|
| 查看次数: |
1080 次 |
| 最近记录: |