다음을 통해 공유


ICustomContextService2.ValidateTaskSettingsAsync(String) Method

Definition

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

Applies to