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)
Syntax
public bool Validate(
ValidationErrorCollection errors,
bool includeDetailedErrors
)
public:
bool Validate(
ValidationErrorCollection^ errors,
bool includeDetailedErrors
)
member Validate :
errors:ValidationErrorCollection *
includeDetailedErrors:bool -> bool
Public Function Validate (
errors As ValidationErrorCollection,
includeDetailedErrors As Boolean
) As Boolean
Parameters
errors
Type: Microsoft.AnalysisServices.ValidationErrorCollectionA collection within which errors can be logged.
includeDetailedErrors
Type: System.Booleantrue if detailed errors is enabled; otherwise false.
Return Value
Type: System.Boolean
A collection of errors encountered.
See Also
Validate Overload
ModelComponent Class
Microsoft.AnalysisServices Namespace
Return to top