Share via


UserDataTaskListLimitedWriteOperations.TryCompleteTaskAsync(String) Method

Definition

Asynchronously attempts to mark a task as completed.

public:
 virtual IAsyncOperation<Platform::String ^> ^ TryCompleteTaskAsync(Platform::String ^ userDataTaskId) = TryCompleteTaskAsync;
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperation<winrt::hstring> TryCompleteTaskAsync(winrt::hstring const& userDataTaskId);
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperation<string> TryCompleteTaskAsync(string userDataTaskId);
function tryCompleteTaskAsync(userDataTaskId)
Public Function TryCompleteTaskAsync (userDataTaskId As String) As IAsyncOperation(Of String)

Parameters

userDataTaskId
String

Platform::String

winrt::hstring

The ID of the task to mark as completed.

Returns

IAsyncOperation<String>

IAsyncOperation<Platform::String>

IAsyncOperation<winrt::hstring>

The ID of the task marked as completed.

Attributes

Applies to