次の方法で共有


DkmTaskProviderOperationContext.Create Method

Definition

Create a new DkmTaskProviderOperationContext object instance. The caller is responsible for closing the created object after they are done.

Location constraint: API must be called from an IDE component (component level > 100,000).

This API was introduced in Visual Studio 16 Update 5 (DkmApiVersion.VS16Update5).

public:
 static Microsoft::VisualStudio::Debugger::ParallelTasks::DkmTaskProviderOperationContext ^ Create(Microsoft::VisualStudio::Debugger::ParallelTasks::DkmTaskProvider ^ TaskProvider, Guid SourceId, Microsoft::VisualStudio::Debugger::DkmDataItem ^ DataItem);
public static Microsoft.VisualStudio.Debugger.ParallelTasks.DkmTaskProviderOperationContext Create (Microsoft.VisualStudio.Debugger.ParallelTasks.DkmTaskProvider TaskProvider, Guid SourceId, Microsoft.VisualStudio.Debugger.DkmDataItem DataItem);
public static Microsoft.VisualStudio.Debugger.ParallelTasks.DkmTaskProviderOperationContext Create (Microsoft.VisualStudio.Debugger.ParallelTasks.DkmTaskProvider TaskProvider, Guid SourceId, Microsoft.VisualStudio.Debugger.DkmDataItem? DataItem);
static member Create : Microsoft.VisualStudio.Debugger.ParallelTasks.DkmTaskProvider * Guid * Microsoft.VisualStudio.Debugger.DkmDataItem -> Microsoft.VisualStudio.Debugger.ParallelTasks.DkmTaskProviderOperationContext
Public Shared Function Create (TaskProvider As DkmTaskProvider, SourceId As Guid, DataItem As DkmDataItem) As DkmTaskProviderOperationContext

Parameters

TaskProvider
DkmTaskProvider

[In] The task provider that will be performing this operation.

SourceId
Guid

[In] Identifies the creator of the operation context. This is used for filtering for IDkmTaskProviderOperationProgressNotification. If the caller doesn't want to receive progress notifications, this can be set to Guid.Empty (GUID_NULL).

DataItem
DkmDataItem

[In,Optional] Data object to add to the new DkmTaskProviderOperationContext instance. Pass 'null' in the case that the caller doesn't need to add a data item.

Returns

[Out] Result of this method call.

Applies to