ICustomContextService2.ValidateTaskSettingsAsync(String) 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.
Validate a JSON content of a tasks.vs.json file by validating all the task items
public:
System::Threading::Tasks::Task<System::Collections::Generic::IReadOnlyCollection<Microsoft::VisualStudio::Workspace::Build::BuildMessage ^> ^> ^ ValidateTaskSettingsAsync(System::String ^ jsonContent);
public System.Threading.Tasks.Task<System.Collections.Generic.IReadOnlyCollection<Microsoft.VisualStudio.Workspace.Build.BuildMessage>> ValidateTaskSettingsAsync (string jsonContent);
abstract member ValidateTaskSettingsAsync : string -> System.Threading.Tasks.Task<System.Collections.Generic.IReadOnlyCollection<Microsoft.VisualStudio.Workspace.Build.BuildMessage>>
Public Function ValidateTaskSettingsAsync (jsonContent As String) As Task(Of IReadOnlyCollection(Of BuildMessage))
Parameters
- jsonContent
- String
The JSON content to validate
Returns
Collection of BuildErrors to validate