DkmCustomDataContainer Class

Definition

Data container used to hold custom data about an object that does not directly support data containers.

This API was introduced in Visual Studio 14 RTM (DkmApiVersion.VS14RTM).

public ref class DkmCustomDataContainer : Microsoft::VisualStudio::Debugger::DkmDataContainer, IDisposable
[System.Runtime.InteropServices.Guid("f9f8611d-e2ca-35c0-696a-eb4f7f38ee13")]
public class DkmCustomDataContainer : Microsoft.VisualStudio.Debugger.DkmDataContainer, IDisposable
[<System.Runtime.InteropServices.Guid("f9f8611d-e2ca-35c0-696a-eb4f7f38ee13")>]
type DkmCustomDataContainer = class
    inherit DkmDataContainer
    interface IDisposable
Public Class DkmCustomDataContainer
Inherits DkmDataContainer
Implements IDisposable
Inheritance
DkmCustomDataContainer
Attributes
Implements

Properties

IsUnloaded

Returns true if a 'unloaded' event has been raised for this object (example: DkmThread::Unload is called) or if the object has been closed. Note that care must be used when checking this status as, without synchronization, the returned status may no longer be accurate the instruction after it is read.

(Inherited from DkmDataContainer)
Process

DkmProcess represents a target process which is being debugged. The debugger debugs processes, so this is the basic unit of debugging. A DkmProcess can represent a system process or a virtual process such as minidumps.

This API was introduced in Visual Studio 14 RTM (DkmApiVersion.VS14RTM).

UniqueId

Unique id of this data container.

This API was introduced in Visual Studio 14 RTM (DkmApiVersion.VS14RTM).

Methods

Close()

Closes a DkmCustomDataContainer object instance. This will release any resources associated with this object across all components. This includes resources across computer or managed/native marshalling boundaries.

DkmCustomDataContainer objects are automatically closed when their associated DkmProcess object is closed.

This API was introduced in Visual Studio 14 RTM (DkmApiVersion.VS14RTM).

Create(DkmProcess, DkmDataItem)

Create a new DkmCustomDataContainer object instance.

This API was introduced in Visual Studio 14 RTM (DkmApiVersion.VS14RTM).

GetDataItem<T>()

Gets the instance of 'T' which has been added to this container instance. If this container does not contain a 'T', this function will return null.

(Inherited from DkmDataContainer)
RemoveDataItem<T>()

Remove the instance of 'T' from this container. It is usually unnecessary to call this method as a data container will automatically be emptied when the object is closed.

(Inherited from DkmDataContainer)
SetDataItem<T>(DkmDataCreationDisposition, T)

Place a new item in the data container.

(Inherited from DkmDataContainer)

Explicit Interface Implementations

IDisposable.Dispose()

To be added.

Applies to