Share via


DkmChildVisualizedExpression.Create Method

Definition

Create a new DkmChildVisualizedExpression object instance.

public:
 static Microsoft::VisualStudio::Debugger::Evaluation::DkmChildVisualizedExpression ^ Create(Microsoft::VisualStudio::Debugger::Evaluation::DkmInspectionContext ^ InspectionContext, Guid VisualizerId, Guid SourceId, Microsoft::VisualStudio::Debugger::CallStack::DkmStackWalkFrame ^ StackFrame, Microsoft::VisualStudio::Debugger::Evaluation::DkmExpressionValueHome ^ ValueHome, Microsoft::VisualStudio::Debugger::Evaluation::DkmEvaluationResult ^ EvaluationResult, Microsoft::VisualStudio::Debugger::Evaluation::DkmVisualizedExpression ^ Parent, System::UInt32 Index, Microsoft::VisualStudio::Debugger::DkmDataItem ^ DataItem);
public static Microsoft.VisualStudio.Debugger.Evaluation.DkmChildVisualizedExpression Create (Microsoft.VisualStudio.Debugger.Evaluation.DkmInspectionContext InspectionContext, Guid VisualizerId, Guid SourceId, Microsoft.VisualStudio.Debugger.CallStack.DkmStackWalkFrame StackFrame, Microsoft.VisualStudio.Debugger.Evaluation.DkmExpressionValueHome ValueHome, Microsoft.VisualStudio.Debugger.Evaluation.DkmEvaluationResult EvaluationResult, Microsoft.VisualStudio.Debugger.Evaluation.DkmVisualizedExpression Parent, uint Index, Microsoft.VisualStudio.Debugger.DkmDataItem DataItem);
public static Microsoft.VisualStudio.Debugger.Evaluation.DkmChildVisualizedExpression Create (Microsoft.VisualStudio.Debugger.Evaluation.DkmInspectionContext InspectionContext, Guid VisualizerId, Guid SourceId, Microsoft.VisualStudio.Debugger.CallStack.DkmStackWalkFrame StackFrame, Microsoft.VisualStudio.Debugger.Evaluation.DkmExpressionValueHome? ValueHome, Microsoft.VisualStudio.Debugger.Evaluation.DkmEvaluationResult EvaluationResult, Microsoft.VisualStudio.Debugger.Evaluation.DkmVisualizedExpression Parent, uint Index, Microsoft.VisualStudio.Debugger.DkmDataItem? DataItem);
static member Create : Microsoft.VisualStudio.Debugger.Evaluation.DkmInspectionContext * Guid * Guid * Microsoft.VisualStudio.Debugger.CallStack.DkmStackWalkFrame * Microsoft.VisualStudio.Debugger.Evaluation.DkmExpressionValueHome * Microsoft.VisualStudio.Debugger.Evaluation.DkmEvaluationResult * Microsoft.VisualStudio.Debugger.Evaluation.DkmVisualizedExpression * uint32 * Microsoft.VisualStudio.Debugger.DkmDataItem -> Microsoft.VisualStudio.Debugger.Evaluation.DkmChildVisualizedExpression
Public Shared Function Create (InspectionContext As DkmInspectionContext, VisualizerId As Guid, SourceId As Guid, StackFrame As DkmStackWalkFrame, ValueHome As DkmExpressionValueHome, EvaluationResult As DkmEvaluationResult, Parent As DkmVisualizedExpression, Index As UInteger, DataItem As DkmDataItem) As DkmChildVisualizedExpression

Parameters

InspectionContext
DkmInspectionContext

[In] Options and target context to use while performing the inspection operation.

VisualizerId
Guid

[In] Guid which ties together the addin and the expressions that call that addin. The addin should use the Guid provided in the native visualizer file as a filter.

SourceId
Guid

[In] Guid which ties together the expression evaluator that created this object and the object itself. Generally used by expression evaluators to filter their implementation of IDkmCustomVisualizerCallback to only DkmVisualizedExpression they created.

StackFrame
DkmStackWalkFrame

[In] Stack frame the expression is being evaluated in expression in.

ValueHome
DkmExpressionValueHome

[In,Optional] The location at which the value is stored, which can be modified to edit the value. This should be null for read-only values, such as integer constants.

EvaluationResult
DkmEvaluationResult

[In] The result of evaluating this visualized child. The expression evaluator reserves the right to override this instance so do not rely on storing data items in the DkmEvaluationResult instance. Use the DkmVisualizedExpression instance as a data container instead.

Parent
DkmVisualizedExpression

[In] The Parent of this visualized child.

Index
UInt32

[In] The index of this child in the parent object's child collection. The expression evaluator will use this when processing the full name of a child item. The full name is used when the user clicks on an item and says Add To Watch or when the user types something in the watch window directly. If the visualizer does not provide a full name, then callback to the expression evaluator to construct a default expand expression The value of the index field will be used to obtain the correct expand expression.

DataItem
DkmDataItem

[In,Optional] Data object to add to the new DkmChildVisualizedExpression 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