DkmManagedHeapSampler.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(DkmRuntimeInstance, DkmDataItem) |
Create a new DkmManagedHeapSampler object instance. The caller is responsible for closing the created object after they are done. This API was introduced in Visual Studio 12 RTM (DkmApiVersion.VS12RTM). |
Create(DkmRuntimeInstance, DkmWorkerProcessConnection, DkmDataItem) |
Create a new DkmManagedHeapSampler object instance. The caller is responsible for closing the created object after they are done. This API was introduced in Visual Studio 16 RTM (DkmApiVersion.VS16RTMPreview). |
Create(DkmRuntimeInstance, DkmDataItem)
Create a new DkmManagedHeapSampler object instance. The caller is responsible for closing the created object after they are done.
This API was introduced in Visual Studio 12 RTM (DkmApiVersion.VS12RTM).
public:
static Microsoft::VisualStudio::Debugger::Clr::DkmManagedHeapSampler ^ Create(Microsoft::VisualStudio::Debugger::DkmRuntimeInstance ^ RuntimeInstance, Microsoft::VisualStudio::Debugger::DkmDataItem ^ DataItem);
public static Microsoft.VisualStudio.Debugger.Clr.DkmManagedHeapSampler Create (Microsoft.VisualStudio.Debugger.DkmRuntimeInstance RuntimeInstance, Microsoft.VisualStudio.Debugger.DkmDataItem DataItem);
public static Microsoft.VisualStudio.Debugger.Clr.DkmManagedHeapSampler Create (Microsoft.VisualStudio.Debugger.DkmRuntimeInstance RuntimeInstance, Microsoft.VisualStudio.Debugger.DkmDataItem? DataItem);
static member Create : Microsoft.VisualStudio.Debugger.DkmRuntimeInstance * Microsoft.VisualStudio.Debugger.DkmDataItem -> Microsoft.VisualStudio.Debugger.Clr.DkmManagedHeapSampler
Public Shared Function Create (RuntimeInstance As DkmRuntimeInstance, DataItem As DkmDataItem) As DkmManagedHeapSampler
Parameters
- RuntimeInstance
- DkmRuntimeInstance
[In] The DkmRuntimeInstance class represents an execution environment which is loaded into a DkmProcess and which contains code to be debugged.
- DataItem
- DkmDataItem
[In,Optional] Data object to add to the new DkmManagedHeapSampler 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(DkmRuntimeInstance, DkmWorkerProcessConnection, DkmDataItem)
Create a new DkmManagedHeapSampler object instance. The caller is responsible for closing the created object after they are done.
This API was introduced in Visual Studio 16 RTM (DkmApiVersion.VS16RTMPreview).
public:
static Microsoft::VisualStudio::Debugger::Clr::DkmManagedHeapSampler ^ Create(Microsoft::VisualStudio::Debugger::DkmRuntimeInstance ^ RuntimeInstance, Microsoft::VisualStudio::Debugger::DefaultPort::DkmWorkerProcessConnection ^ WorkerConnection, Microsoft::VisualStudio::Debugger::DkmDataItem ^ DataItem);
public static Microsoft.VisualStudio.Debugger.Clr.DkmManagedHeapSampler Create (Microsoft.VisualStudio.Debugger.DkmRuntimeInstance RuntimeInstance, Microsoft.VisualStudio.Debugger.DefaultPort.DkmWorkerProcessConnection WorkerConnection, Microsoft.VisualStudio.Debugger.DkmDataItem DataItem);
public static Microsoft.VisualStudio.Debugger.Clr.DkmManagedHeapSampler Create (Microsoft.VisualStudio.Debugger.DkmRuntimeInstance RuntimeInstance, Microsoft.VisualStudio.Debugger.DefaultPort.DkmWorkerProcessConnection? WorkerConnection, Microsoft.VisualStudio.Debugger.DkmDataItem? DataItem);
static member Create : Microsoft.VisualStudio.Debugger.DkmRuntimeInstance * Microsoft.VisualStudio.Debugger.DefaultPort.DkmWorkerProcessConnection * Microsoft.VisualStudio.Debugger.DkmDataItem -> Microsoft.VisualStudio.Debugger.Clr.DkmManagedHeapSampler
Public Shared Function Create (RuntimeInstance As DkmRuntimeInstance, WorkerConnection As DkmWorkerProcessConnection, DataItem As DkmDataItem) As DkmManagedHeapSampler
Parameters
- RuntimeInstance
- DkmRuntimeInstance
[In] The DkmRuntimeInstance class represents an execution environment which is loaded into a DkmProcess and which contains code to be debugged.
- WorkerConnection
- DkmWorkerProcessConnection
[In,Optional] Specifies a connection to a worker process where the Heap Sampler's operations will be processed.
- DataItem
- DkmDataItem
[In,Optional] Data object to add to the new DkmManagedHeapSampler instance. Pass 'null' in the case that the caller doesn't need to add a data item.
Returns
[Out] Result of this method call.