Méthode ModelComponent.Validate (ValidationErrorCollection, Boolean)
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.
Espace de noms : Microsoft.AnalysisServices
Assembly : Microsoft.AnalysisServices (en Microsoft.AnalysisServices.dll)
Syntaxe
'Déclaration
Public Function Validate ( _
errors As ValidationErrorCollection, _
includeDetailedErrors As Boolean _
) As Boolean
'Utilisation
Dim instance As ModelComponent
Dim errors As ValidationErrorCollection
Dim includeDetailedErrors As Boolean
Dim returnValue As Boolean
returnValue = instance.Validate(errors, _
includeDetailedErrors)
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 : ValidationErrorCollection,
includeDetailedErrors : boolean
) : boolean
Paramètres
- errors
Type : Microsoft.AnalysisServices.ValidationErrorCollection
A collection within which errors can be logged.
- includeDetailedErrors
Type : System.Boolean
true if detailed errors is enabled; otherwise false.
Valeur de retour
Type : System.Boolean
A collection of errors encountered.