BaseSession.PromotePersonalTaskToProviderTaskInLocation method

Makes a copy of the specified task in the data source of the specified location and links it the AWIOP representation.

Namespace:  Microsoft.SharePoint.WorkManagement.Client
Assembly:  Microsoft.SharePoint.WorkManagement.Client (in Microsoft.SharePoint.WorkManagement.Client.dll)

Syntax

'Declaration
<RemoteAttribute> _
Public Function PromotePersonalTaskToProviderTaskInLocation ( _
    taskKey As Integer, _
    locationId As Integer _
) As TaskWriteResult
'Usage
Dim instance As BaseSession
Dim taskKey As Integer
Dim locationId As Integer
Dim returnValue As TaskWriteResult

returnValue = instance.PromotePersonalTaskToProviderTaskInLocation(taskKey, _
    locationId)
[RemoteAttribute]
public TaskWriteResult PromotePersonalTaskToProviderTaskInLocation(
    int taskKey,
    int locationId
)

Parameters

Return value

Type: Microsoft.SharePoint.WorkManagement.Client.TaskWriteResult

Remarks

For example, if the location ID points to a SharePoint list, calling this method would result in a task being created in that list. The AWIOP task would be changed to be a linked task rather than a personal one, as if the task had been created in the list and then aggregated by AWIOP.

See also

Reference

BaseSession class

BaseSession members

Microsoft.SharePoint.WorkManagement.Client namespace