IPropertyEvaluatorService.Evaluate Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Evaluate a content and resolve all possible ${prefix.var} instances found
public:
Microsoft::VisualStudio::Workspace::Evaluator::EvaluationResult ^ Evaluate(System::String ^ content, System::String ^ fileScopePath, System::Collections::Generic::IReadOnlyCollection<System::String ^> ^ inheritEnvironments, System::Collections::Generic::IEnumerable<Tuple<Microsoft::VisualStudio::Workspace::Evaluator::IPropertyEvaluator ^, Microsoft::VisualStudio::Workspace::Evaluator::IPropertyEvaluatorMetadata ^> ^> ^ localPropertyEvaluators);
public Microsoft.VisualStudio.Workspace.Evaluator.EvaluationResult Evaluate (string content, string fileScopePath, System.Collections.Generic.IReadOnlyCollection<string> inheritEnvironments, System.Collections.Generic.IEnumerable<Tuple<Microsoft.VisualStudio.Workspace.Evaluator.IPropertyEvaluator,Microsoft.VisualStudio.Workspace.Evaluator.IPropertyEvaluatorMetadata>> localPropertyEvaluators);
public Microsoft.VisualStudio.Workspace.Evaluator.EvaluationResult Evaluate (string content, string fileScopePath, System.Collections.Generic.IReadOnlyCollection<string>? inheritEnvironments, System.Collections.Generic.IEnumerable<Tuple<Microsoft.VisualStudio.Workspace.Evaluator.IPropertyEvaluator,Microsoft.VisualStudio.Workspace.Evaluator.IPropertyEvaluatorMetadata>>? localPropertyEvaluators);
abstract member Evaluate : string * string * System.Collections.Generic.IReadOnlyCollection<string> * seq<Microsoft.VisualStudio.Workspace.Evaluator.IPropertyEvaluator * Microsoft.VisualStudio.Workspace.Evaluator.IPropertyEvaluatorMetadata> -> Microsoft.VisualStudio.Workspace.Evaluator.EvaluationResult
Public Function Evaluate (content As String, fileScopePath As String, inheritEnvironments As IReadOnlyCollection(Of String), localPropertyEvaluators As IEnumerable(Of Tuple(Of IPropertyEvaluator, IPropertyEvaluatorMetadata))) As EvaluationResult
Parameters
- content
- String
Content data to look
- fileScopePath
- String
The file scope context
- inheritEnvironments
- IReadOnlyCollection<String>
Optional collection of environments to pass to providers
- localPropertyEvaluators
- IEnumerable<Tuple<IPropertyEvaluator,IPropertyEvaluatorMetadata>>
Local scope property valuators
Returns
An evaluation result instance