DkmTask.Create Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
Create(DkmTaskProvider, DkmThread, UInt64, UInt64, DkmTaskStackSegment, DkmDataItem) |
This method is called to represent a task on a specific thread. |
Create(DkmTaskProvider, DkmThread, UInt64, UInt64, DkmTaskStackSegment, DkmTaskReturnStatus, Double, Double, Double, DkmDataItem) |
This method is called to represent a task on a specific thread. This API was introduced in Visual Studio 12 RTM (DkmApiVersion.VS12RTM). |
Create(DkmTaskProvider, DkmThread, UInt64, UInt64, DkmTaskStackSegment, DkmTaskReturnStatus, Double, Double, Double, DkmManagedReturnStackFrame, ReadOnlyCollection<DkmManagedReturnStackFrame>, DkmDataItem) |
This method is called to represent a task on a specific thread. This API was introduced in Visual Studio 15 Update 8 (DkmApiVersion.VS15Update8). |
Create(DkmTaskProvider, DkmThread, UInt64, UInt64, DkmTaskStackSegment, DkmDataItem)
This method is called to represent a task on a specific thread.
public:
static Microsoft::VisualStudio::Debugger::ParallelTasks::DkmTask ^ Create(Microsoft::VisualStudio::Debugger::ParallelTasks::DkmTaskProvider ^ TaskProvider, Microsoft::VisualStudio::Debugger::DkmThread ^ Thread, System::UInt64 TaskId, System::UInt64 ParentTaskId, Microsoft::VisualStudio::Debugger::ParallelTasks::DkmTaskStackSegment StackSegment, Microsoft::VisualStudio::Debugger::DkmDataItem ^ DataItem);
public static Microsoft.VisualStudio.Debugger.ParallelTasks.DkmTask Create (Microsoft.VisualStudio.Debugger.ParallelTasks.DkmTaskProvider TaskProvider, Microsoft.VisualStudio.Debugger.DkmThread Thread, ulong TaskId, ulong ParentTaskId, Microsoft.VisualStudio.Debugger.ParallelTasks.DkmTaskStackSegment StackSegment, Microsoft.VisualStudio.Debugger.DkmDataItem DataItem);
public static Microsoft.VisualStudio.Debugger.ParallelTasks.DkmTask Create (Microsoft.VisualStudio.Debugger.ParallelTasks.DkmTaskProvider TaskProvider, Microsoft.VisualStudio.Debugger.DkmThread? Thread, ulong TaskId, ulong ParentTaskId, Microsoft.VisualStudio.Debugger.ParallelTasks.DkmTaskStackSegment StackSegment, Microsoft.VisualStudio.Debugger.DkmDataItem? DataItem);
static member Create : Microsoft.VisualStudio.Debugger.ParallelTasks.DkmTaskProvider * Microsoft.VisualStudio.Debugger.DkmThread * uint64 * uint64 * Microsoft.VisualStudio.Debugger.ParallelTasks.DkmTaskStackSegment * Microsoft.VisualStudio.Debugger.DkmDataItem -> Microsoft.VisualStudio.Debugger.ParallelTasks.DkmTask
Public Shared Function Create (TaskProvider As DkmTaskProvider, Thread As DkmThread, TaskId As ULong, ParentTaskId As ULong, StackSegment As DkmTaskStackSegment, DataItem As DkmDataItem) As DkmTask
Parameters
- TaskProvider
- DkmTaskProvider
[In] Represents a task provider which is loaded into the target process.
- Thread
- DkmThread
[In,Optional] DkmThread represents a thread running in the target process.
- TaskId
- UInt64
[In] Identifier for this particular instance.
- ParentTaskId
- UInt64
[In] ID of parent task, 0 if there is no parent task.
- StackSegment
- DkmTaskStackSegment
[In] Represents stack segment that task applies to. AddressOriginalMin <= AddressMin <= AddressMax <= AddressOriginalMax.
- DataItem
- DkmDataItem
[In,Optional] Data object to add to the new DkmTask 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
Create(DkmTaskProvider, DkmThread, UInt64, UInt64, DkmTaskStackSegment, DkmTaskReturnStatus, Double, Double, Double, DkmDataItem)
This method is called to represent a task on a specific thread.
This API was introduced in Visual Studio 12 RTM (DkmApiVersion.VS12RTM).
public:
static Microsoft::VisualStudio::Debugger::ParallelTasks::DkmTask ^ Create(Microsoft::VisualStudio::Debugger::ParallelTasks::DkmTaskProvider ^ TaskProvider, Microsoft::VisualStudio::Debugger::DkmThread ^ Thread, System::UInt64 TaskId, System::UInt64 ParentTaskId, Microsoft::VisualStudio::Debugger::ParallelTasks::DkmTaskStackSegment StackSegment, Microsoft::VisualStudio::Debugger::ParallelTasks::DkmTaskReturnStatus ReturnStatus, double StartTime, double CompletedTime, double Duration, Microsoft::VisualStudio::Debugger::DkmDataItem ^ DataItem);
public static Microsoft.VisualStudio.Debugger.ParallelTasks.DkmTask Create (Microsoft.VisualStudio.Debugger.ParallelTasks.DkmTaskProvider TaskProvider, Microsoft.VisualStudio.Debugger.DkmThread Thread, ulong TaskId, ulong ParentTaskId, Microsoft.VisualStudio.Debugger.ParallelTasks.DkmTaskStackSegment StackSegment, Microsoft.VisualStudio.Debugger.ParallelTasks.DkmTaskReturnStatus ReturnStatus, double StartTime, double CompletedTime, double Duration, Microsoft.VisualStudio.Debugger.DkmDataItem DataItem);
public static Microsoft.VisualStudio.Debugger.ParallelTasks.DkmTask Create (Microsoft.VisualStudio.Debugger.ParallelTasks.DkmTaskProvider TaskProvider, Microsoft.VisualStudio.Debugger.DkmThread? Thread, ulong TaskId, ulong ParentTaskId, Microsoft.VisualStudio.Debugger.ParallelTasks.DkmTaskStackSegment StackSegment, Microsoft.VisualStudio.Debugger.ParallelTasks.DkmTaskReturnStatus ReturnStatus, double StartTime, double CompletedTime, double Duration, Microsoft.VisualStudio.Debugger.DkmDataItem? DataItem);
static member Create : Microsoft.VisualStudio.Debugger.ParallelTasks.DkmTaskProvider * Microsoft.VisualStudio.Debugger.DkmThread * uint64 * uint64 * Microsoft.VisualStudio.Debugger.ParallelTasks.DkmTaskStackSegment * Microsoft.VisualStudio.Debugger.ParallelTasks.DkmTaskReturnStatus * double * double * double * Microsoft.VisualStudio.Debugger.DkmDataItem -> Microsoft.VisualStudio.Debugger.ParallelTasks.DkmTask
Public Shared Function Create (TaskProvider As DkmTaskProvider, Thread As DkmThread, TaskId As ULong, ParentTaskId As ULong, StackSegment As DkmTaskStackSegment, ReturnStatus As DkmTaskReturnStatus, StartTime As Double, CompletedTime As Double, Duration As Double, DataItem As DkmDataItem) As DkmTask
Parameters
- TaskProvider
- DkmTaskProvider
[In] Represents a task provider which is loaded into the target process.
- Thread
- DkmThread
[In,Optional] DkmThread represents a thread running in the target process.
- TaskId
- UInt64
[In] Identifier for this particular instance.
- ParentTaskId
- UInt64
[In] ID of parent task, 0 if there is no parent task.
- StackSegment
- DkmTaskStackSegment
[In] Represents stack segment that task applies to. AddressOriginalMin <= AddressMin <= AddressMax <= AddressOriginalMax.
- ReturnStatus
- DkmTaskReturnStatus
[In] The return status of the task or unknown if the task has not completed.
- StartTime
- Double
[In] The time since debugging started that this task started. The time is in seconds.
- CompletedTime
- Double
[In] The time since debugging started that this task completed. The time is in seconds.
- Duration
- Double
[In] The current task duration in seconds.
- DataItem
- DkmDataItem
[In,Optional] Data object to add to the new DkmTask 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
Create(DkmTaskProvider, DkmThread, UInt64, UInt64, DkmTaskStackSegment, DkmTaskReturnStatus, Double, Double, Double, DkmManagedReturnStackFrame, ReadOnlyCollection<DkmManagedReturnStackFrame>, DkmDataItem)
This method is called to represent a task on a specific thread.
This API was introduced in Visual Studio 15 Update 8 (DkmApiVersion.VS15Update8).
public:
static Microsoft::VisualStudio::Debugger::ParallelTasks::DkmTask ^ Create(Microsoft::VisualStudio::Debugger::ParallelTasks::DkmTaskProvider ^ TaskProvider, Microsoft::VisualStudio::Debugger::DkmThread ^ Thread, System::UInt64 TaskId, System::UInt64 ParentTaskId, Microsoft::VisualStudio::Debugger::ParallelTasks::DkmTaskStackSegment StackSegment, Microsoft::VisualStudio::Debugger::ParallelTasks::DkmTaskReturnStatus ReturnStatus, double StartTime, double CompletedTime, double Duration, Microsoft::VisualStudio::Debugger::Clr::DkmManagedReturnStackFrame ^ LocationFrame, System::Collections::ObjectModel::ReadOnlyCollection<Microsoft::VisualStudio::Debugger::Clr::DkmManagedReturnStackFrame ^> ^ ContinuationFrames, Microsoft::VisualStudio::Debugger::DkmDataItem ^ DataItem);
public static Microsoft.VisualStudio.Debugger.ParallelTasks.DkmTask Create (Microsoft.VisualStudio.Debugger.ParallelTasks.DkmTaskProvider TaskProvider, Microsoft.VisualStudio.Debugger.DkmThread Thread, ulong TaskId, ulong ParentTaskId, Microsoft.VisualStudio.Debugger.ParallelTasks.DkmTaskStackSegment StackSegment, Microsoft.VisualStudio.Debugger.ParallelTasks.DkmTaskReturnStatus ReturnStatus, double StartTime, double CompletedTime, double Duration, Microsoft.VisualStudio.Debugger.Clr.DkmManagedReturnStackFrame LocationFrame, System.Collections.ObjectModel.ReadOnlyCollection<Microsoft.VisualStudio.Debugger.Clr.DkmManagedReturnStackFrame> ContinuationFrames, Microsoft.VisualStudio.Debugger.DkmDataItem DataItem);
public static Microsoft.VisualStudio.Debugger.ParallelTasks.DkmTask Create (Microsoft.VisualStudio.Debugger.ParallelTasks.DkmTaskProvider TaskProvider, Microsoft.VisualStudio.Debugger.DkmThread? Thread, ulong TaskId, ulong ParentTaskId, Microsoft.VisualStudio.Debugger.ParallelTasks.DkmTaskStackSegment StackSegment, Microsoft.VisualStudio.Debugger.ParallelTasks.DkmTaskReturnStatus ReturnStatus, double StartTime, double CompletedTime, double Duration, Microsoft.VisualStudio.Debugger.Clr.DkmManagedReturnStackFrame? LocationFrame, System.Collections.ObjectModel.ReadOnlyCollection<Microsoft.VisualStudio.Debugger.Clr.DkmManagedReturnStackFrame>? ContinuationFrames, Microsoft.VisualStudio.Debugger.DkmDataItem? DataItem);
static member Create : Microsoft.VisualStudio.Debugger.ParallelTasks.DkmTaskProvider * Microsoft.VisualStudio.Debugger.DkmThread * uint64 * uint64 * Microsoft.VisualStudio.Debugger.ParallelTasks.DkmTaskStackSegment * Microsoft.VisualStudio.Debugger.ParallelTasks.DkmTaskReturnStatus * double * double * double * Microsoft.VisualStudio.Debugger.Clr.DkmManagedReturnStackFrame * System.Collections.ObjectModel.ReadOnlyCollection<Microsoft.VisualStudio.Debugger.Clr.DkmManagedReturnStackFrame> * Microsoft.VisualStudio.Debugger.DkmDataItem -> Microsoft.VisualStudio.Debugger.ParallelTasks.DkmTask
Public Shared Function Create (TaskProvider As DkmTaskProvider, Thread As DkmThread, TaskId As ULong, ParentTaskId As ULong, StackSegment As DkmTaskStackSegment, ReturnStatus As DkmTaskReturnStatus, StartTime As Double, CompletedTime As Double, Duration As Double, LocationFrame As DkmManagedReturnStackFrame, ContinuationFrames As ReadOnlyCollection(Of DkmManagedReturnStackFrame), DataItem As DkmDataItem) As DkmTask
Parameters
- TaskProvider
- DkmTaskProvider
[In] Represents a task provider which is loaded into the target process.
- Thread
- DkmThread
[In,Optional] DkmThread represents a thread running in the target process.
- TaskId
- UInt64
[In] Identifier for this particular instance.
- ParentTaskId
- UInt64
[In] ID of parent task, 0 if there is no parent task.
- StackSegment
- DkmTaskStackSegment
[In] Represents stack segment that task applies to. AddressOriginalMin <= AddressMin <= AddressMax <= AddressOriginalMax.
- ReturnStatus
- DkmTaskReturnStatus
[In] The return status of the task or unknown if the task has not completed.
- StartTime
- Double
[In] The time since debugging started that this task started. The time is in seconds.
- CompletedTime
- Double
[In] The time since debugging started that this task completed. The time is in seconds.
- Duration
- Double
[In] The current task duration in seconds.
- LocationFrame
- DkmManagedReturnStackFrame
[In,Optional] The location frame of the task.
- ContinuationFrames
- ReadOnlyCollection<DkmManagedReturnStackFrame>
[In,Optional] The continuation frames of this task, if any.
- DataItem
- DkmDataItem
[In,Optional] Data object to add to the new DkmTask instance. Pass 'null' in the case that the caller doesn't need to add a data item.
Returns
[Out] Result of this method call.