QueueSystem.CancelCorrelation 方法

取消指定的作业相关的 Project Server 队列服务中。

命名空间:  WebSvcQueueSystem
程序集:  ProjectServerServices(位于 ProjectServerServices.dll 中)

语法

声明
<SoapDocumentMethodAttribute("https://schemas.microsoft.com/office/project/server/webservices/QueueSystem/CancelCorrelation", RequestNamespace := "https://schemas.microsoft.com/office/project/server/webservices/QueueSystem/",  _
    ResponseNamespace := "https://schemas.microsoft.com/office/project/server/webservices/QueueSystem/",  _
    Use := SoapBindingUse.Literal, ParameterStyle := SoapParameterStyle.Wrapped)> _
Public Sub CancelCorrelation ( _
    correlationUID As Guid, _
    cancelSendIncompleteJobs As Boolean _
)
用法
Dim instance As QueueSystem
Dim correlationUID As Guid
Dim cancelSendIncompleteJobs As Boolean

instance.CancelCorrelation(correlationUID, _
    cancelSendIncompleteJobs)
[SoapDocumentMethodAttribute("https://schemas.microsoft.com/office/project/server/webservices/QueueSystem/CancelCorrelation", RequestNamespace = "https://schemas.microsoft.com/office/project/server/webservices/QueueSystem/", 
    ResponseNamespace = "https://schemas.microsoft.com/office/project/server/webservices/QueueSystem/", 
    Use = SoapBindingUse.Literal, ParameterStyle = SoapParameterStyle.Wrapped)]
public void CancelCorrelation(
    Guid correlationUID,
    bool cancelSendIncompleteJobs
)

参数

  • correlationUID
    类型:System.Guid

    若要取消的作业相关性的 GUID。

  • cancelSendIncompleteJobs
    类型:System.Boolean

    如果true,也仍然获取在排队的取消作业 ( JobState为SendIncomplete)。

备注

CancelCorrelationCanceled到所有相关的作业的设置的作业完成状态 (JobState)。若要取消当前作业并让相关的剩余作业,请继续处理,请参阅CancelJob

备注

没有之间检查作业的状态和调用CancelCorrelation潜在的竞争条件。当应用程序检查作业的状态时,可能会ReadyForProcessing。在调用CancelCorrelation之前, 状态可以切换到Processing或任何其他状态。

Project Server 权限

权限

说明

LogOn

允许用户登录到 Project Server。全局权限。

另请参阅

引用

QueueSystem 类

QueueSystem 成员

WebSvcQueueSystem 命名空间

CancelJob

GetJobCompletionState