ModelComponent.Validate Method

Definition

Overloads

Validate(ValidationErrorCollection)

Validates the element to which it is appended; returns any errors encountered in a collection.

Validate(ValidationErrorCollection, Boolean, ServerEdition)

Indicates whether a ModelComponent object is valid.

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.

Validate(ValidationErrorCollection)

Validates the element to which it is appended; returns any errors encountered in a collection.

public bool Validate (Microsoft.AnalysisServices.ValidationErrorCollection errors);
member this.Validate : Microsoft.AnalysisServices.ValidationErrorCollection -> bool
Public Function Validate (errors As ValidationErrorCollection) As Boolean

Parameters

errors
ValidationErrorCollection

A collection within which errors can be logged.

Returns

Indication if the component is valid.

Applies to

Validate(ValidationErrorCollection, Boolean, ServerEdition)

Indicates whether a ModelComponent object is valid.

public virtual bool Validate (Microsoft.AnalysisServices.ValidationErrorCollection errors, bool includeDetailedErrors, Microsoft.AnalysisServices.ServerEdition serverEdition);
abstract member Validate : Microsoft.AnalysisServices.ValidationErrorCollection * bool * Microsoft.AnalysisServices.ServerEdition -> bool
override this.Validate : Microsoft.AnalysisServices.ValidationErrorCollection * bool * Microsoft.AnalysisServices.ServerEdition -> bool
Public Overridable Function Validate (errors As ValidationErrorCollection, includeDetailedErrors As Boolean, serverEdition As ServerEdition) As Boolean

Parameters

errors
ValidationErrorCollection

A collection within which errors can be logged.

includeDetailedErrors
Boolean

true if detailed errors is enabled; otherwise false.

serverEdition
ServerEdition

The server edition.

Returns

Indication if the component is valid.

Applies to

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.

public bool Validate (Microsoft.AnalysisServices.ValidationErrorCollection errors, bool includeDetailedErrors);
member this.Validate : Microsoft.AnalysisServices.ValidationErrorCollection * bool -> bool
Public Function Validate (errors As ValidationErrorCollection, includeDetailedErrors As Boolean) As Boolean

Parameters

errors
ValidationErrorCollection

A collection within which errors can be logged.

includeDetailedErrors
Boolean

true if detailed errors is enabled; otherwise false.

Returns

Indication if the component is valid.

Applies to