EvaluatorHelper.EvaluateVariable Method

Definition

Evaluate a single property

public:
[System::Runtime::CompilerServices::Extension]
 static Tuple<bool, System::String ^> ^ EvaluateVariable(Microsoft::VisualStudio::Workspace::Evaluator::IPropertyEvaluatorService ^ propertyEvaluatorService, System::String ^ prefixNamespace, System::String ^ name, System::String ^ filePath, System::Collections::Generic::IReadOnlyCollection<System::String ^> ^ inheritEnvironments, ... cli::array <Tuple<Microsoft::VisualStudio::Workspace::Evaluator::IPropertyEvaluator ^, Microsoft::VisualStudio::Workspace::Evaluator::IPropertyEvaluatorMetadata ^> ^> ^ localPropertyEvaluators);
public static Tuple<bool,string> EvaluateVariable (this Microsoft.VisualStudio.Workspace.Evaluator.IPropertyEvaluatorService propertyEvaluatorService, string prefixNamespace, string name, string filePath, System.Collections.Generic.IReadOnlyCollection<string> inheritEnvironments, params Tuple<Microsoft.VisualStudio.Workspace.Evaluator.IPropertyEvaluator,Microsoft.VisualStudio.Workspace.Evaluator.IPropertyEvaluatorMetadata>[] localPropertyEvaluators);
static member EvaluateVariable : Microsoft.VisualStudio.Workspace.Evaluator.IPropertyEvaluatorService * string * string * string * System.Collections.Generic.IReadOnlyCollection<string> * Microsoft.VisualStudio.Workspace.Evaluator.IPropertyEvaluator * Microsoft.VisualStudio.Workspace.Evaluator.IPropertyEvaluatorMetadata[] -> bool * string
<Extension()>
Public Function EvaluateVariable (propertyEvaluatorService As IPropertyEvaluatorService, prefixNamespace As String, name As String, filePath As String, inheritEnvironments As IReadOnlyCollection(Of String), ParamArray localPropertyEvaluators As Tuple(Of IPropertyEvaluator, IPropertyEvaluatorMetadata)()) As Tuple(Of Boolean, String)

Parameters

propertyEvaluatorService
IPropertyEvaluatorService

The evaluation service

prefixNamespace
String

Optional namespace

name
String

Name of the variable

filePath
String

The file path

inheritEnvironments
IReadOnlyCollection<String>

Optional inherit environments to pass

localPropertyEvaluators
Tuple<IPropertyEvaluator,IPropertyEvaluatorMetadata>[]

Optional property evaluators

Returns

Info on the evaluation result

Applies to