Share via


DkmDataContainer.GetDataItem<T> Method

Definition

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.

public:
generic <typename T>
 where T : Microsoft::VisualStudio::Debugger::DkmDataItem T GetDataItem();
public:
generic <typename T>
 where T : Microsoft::VisualStudio::Debugger::DkmDataItem T GetDataItem();
template <typename T>
 where T : Microsoft::VisualStudio::Debugger::DkmDataItem T GetDataItem();
public T GetDataItem<T> () where T : Microsoft.VisualStudio.Debugger.DkmDataItem;
public T? GetDataItem<T> () where T : Microsoft.VisualStudio.Debugger.DkmDataItem;
member this.GetDataItem : unit -> 'T (requires 'T :> Microsoft.VisualStudio.Debugger.DkmDataItem)
Public Function GetDataItem(Of T As DkmDataItem) () As T

Type Parameters

T

Type of a data item class. This class must derive from DkmDataItem. See DkmDataContainer definition for more information.

Returns

T

[Optional] 'T' object associated with this container instance.

Applies to