UserDataTaskListLimitedWriteOperations.TryCompleteTaskAsync(String) 方法

定义

异步尝试将任务标记为已完成。

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)

参数

userDataTaskId
String

Platform::String

winrt::hstring

要标记为已完成的任务的 ID。

返回

IAsyncOperation<String>

IAsyncOperation<Platform::String>

IAsyncOperation<winrt::hstring>

标记为已完成的任务的 ID。

属性

适用于