ModelComponent.Validate Method (ValidationErrorCollection, Boolean)


Applies To: SQL Server (starting with 2016)

Validates the element to which it is appended; returns any errors encountered in a collection. Also contains a parameter to enable return of detailed errors.

Namespace:   Microsoft.AnalysisServices
Assembly:  Microsoft.AnalysisServices.Core (in Microsoft.AnalysisServices.Core.dll)

public bool Validate(
	ValidationErrorCollection errors,
	bool includeDetailedErrors


Type: Microsoft.AnalysisServices.ValidationErrorCollection

A collection within which errors can be logged.

Type: System.Boolean

true if detailed errors is enabled; otherwise false.

Return Value

Type: System.Boolean

A collection of errors encountered.

Return to top