Share via


DkmLanguageExpression.Create Method

Definition

Creates a new DkmLanguageExpression object. This can be evaluated with DkmInspectionContext.EvaluateExpression. The caller is responsible for closing the created object after they are done.

public:
 static Microsoft::VisualStudio::Debugger::Evaluation::DkmLanguageExpression ^ Create(Microsoft::VisualStudio::Debugger::Evaluation::DkmLanguage ^ Language, Microsoft::VisualStudio::Debugger::Evaluation::DkmEvaluationFlags CompilationFlags, System::String ^ Text, Microsoft::VisualStudio::Debugger::DkmDataItem ^ DataItem);
public static Microsoft.VisualStudio.Debugger.Evaluation.DkmLanguageExpression Create (Microsoft.VisualStudio.Debugger.Evaluation.DkmLanguage Language, Microsoft.VisualStudio.Debugger.Evaluation.DkmEvaluationFlags CompilationFlags, string Text, Microsoft.VisualStudio.Debugger.DkmDataItem DataItem);
public static Microsoft.VisualStudio.Debugger.Evaluation.DkmLanguageExpression Create (Microsoft.VisualStudio.Debugger.Evaluation.DkmLanguage Language, Microsoft.VisualStudio.Debugger.Evaluation.DkmEvaluationFlags CompilationFlags, string Text, Microsoft.VisualStudio.Debugger.DkmDataItem? DataItem);
static member Create : Microsoft.VisualStudio.Debugger.Evaluation.DkmLanguage * Microsoft.VisualStudio.Debugger.Evaluation.DkmEvaluationFlags * string * Microsoft.VisualStudio.Debugger.DkmDataItem -> Microsoft.VisualStudio.Debugger.Evaluation.DkmLanguageExpression
Public Shared Function Create (Language As DkmLanguage, CompilationFlags As DkmEvaluationFlags, Text As String, DataItem As DkmDataItem) As DkmLanguageExpression

Parameters

Language
DkmLanguage

[In] Describes a programming language.

CompilationFlags
DkmEvaluationFlags

[In] Flags which effect how the condition text should be compiled by the expression evaluator. During evaluation, the caller must ensure that the DkmEvaluationFlags set on the InspectionContext agree with this value -- that is that they may only differ by the last set of flags which are only relevant to the display of values.

Text
String

[In] Source text of the parsed expression.

DataItem
DkmDataItem

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