EvaluatorHelper.EvaluateNoError Method

Definition

Evaluate a content and return the partial evaluation ignoring any possible error

public:
[System::Runtime::CompilerServices::Extension]
 static System::String ^ EvaluateNoError(Microsoft::VisualStudio::Workspace::Evaluator::IPropertyEvaluatorService ^ propertyEvaluatorService, System::String ^ content, 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 string EvaluateNoError (this Microsoft.VisualStudio.Workspace.Evaluator.IPropertyEvaluatorService propertyEvaluatorService, string content, string filePath, System.Collections.Generic.IReadOnlyCollection<string> inheritEnvironments, params Tuple<Microsoft.VisualStudio.Workspace.Evaluator.IPropertyEvaluator,Microsoft.VisualStudio.Workspace.Evaluator.IPropertyEvaluatorMetadata>[] localPropertyEvaluators);
public static string EvaluateNoError (this Microsoft.VisualStudio.Workspace.Evaluator.IPropertyEvaluatorService propertyEvaluatorService, string content, string filePath, System.Collections.Generic.IReadOnlyCollection<string>? inheritEnvironments, params Tuple<Microsoft.VisualStudio.Workspace.Evaluator.IPropertyEvaluator,Microsoft.VisualStudio.Workspace.Evaluator.IPropertyEvaluatorMetadata>[] localPropertyEvaluators);
static member EvaluateNoError : Microsoft.VisualStudio.Workspace.Evaluator.IPropertyEvaluatorService * string * string * System.Collections.Generic.IReadOnlyCollection<string> * Microsoft.VisualStudio.Workspace.Evaluator.IPropertyEvaluator * Microsoft.VisualStudio.Workspace.Evaluator.IPropertyEvaluatorMetadata[] -> string
<Extension()>
Public Function EvaluateNoError (propertyEvaluatorService As IPropertyEvaluatorService, content As String, filePath As String, inheritEnvironments As IReadOnlyCollection(Of String), ParamArray localPropertyEvaluators As Tuple(Of IPropertyEvaluator, IPropertyEvaluatorMetadata)()) As String

Parameters

propertyEvaluatorService
IPropertyEvaluatorService

The evaluation service

content
String

Content to be evaluated

filePath
String

The file path

inheritEnvironments
IReadOnlyCollection<String>

Optional contexts to pass

localPropertyEvaluators
Tuple<IPropertyEvaluator,IPropertyEvaluatorMetadata>[]

Optional property evaluators

Returns

Content of evaluation result

Applies to