Share via


ValidationErrorCollection.Add Method

Definition

Overloads

Add(ValidationError)

Adds the specified ValidationError to the end of the collection.

Add(IModelComponent, String)

Creates a new ValidationError object using the specified source and error information and adds it to the end of the collection.

Add(IModelComponent, String, ErrorPriority)

Creates a new ValidationError object using the specified source and error information and adds it to the end of the collection.

Add(IModelComponent, String, Int32)

Creates a new ValidationError object using the specified source and error information and adds it to the end of the collection.

Add(IModelComponent, String, ErrorPriority, Int32)

Creates a new ValidationError object using the specified source and error information and adds it to the end of the collection.

Add(ValidationError)

Adds the specified ValidationError to the end of the collection.

public int Add (Microsoft.AnalysisServices.ValidationError item);
member this.Add : Microsoft.AnalysisServices.ValidationError -> int
Public Function Add (item As ValidationError) As Integer

Parameters

item
ValidationError

The ValidationError to be added.

Returns

The zero-based index at which the ValidationError has been added to the collection.

Exceptions

The specified item is a null reference (Nothing in Visual Basic).

The specified item already esists in the collection.

Applies to

Add(IModelComponent, String)

Creates a new ValidationError object using the specified source and error information and adds it to the end of the collection.

public int Add (Microsoft.AnalysisServices.IModelComponent source, string error);
member this.Add : Microsoft.AnalysisServices.IModelComponent * string -> int
Public Function Add (source As IModelComponent, error As String) As Integer

Parameters

source
IModelComponent

The source for the new ValidationError object.

error
String

The error message for the new ValidationError object.

Returns

The zero-based index at which the ValidationError has been added to the collection.

Applies to

Add(IModelComponent, String, ErrorPriority)

Creates a new ValidationError object using the specified source and error information and adds it to the end of the collection.

public int Add (Microsoft.AnalysisServices.IModelComponent source, string error, Microsoft.AnalysisServices.ErrorPriority priority);
member this.Add : Microsoft.AnalysisServices.IModelComponent * string * Microsoft.AnalysisServices.ErrorPriority -> int
Public Function Add (source As IModelComponent, error As String, priority As ErrorPriority) As Integer

Parameters

source
IModelComponent

The source for the new ValidationError object.

error
String

The error message for the new ValidationError object.

priority
ErrorPriority

The error priority for the new ValidationError object.

Returns

The zero-based index at which the ValidationError has been added to the collection.

Applies to

Add(IModelComponent, String, Int32)

Creates a new ValidationError object using the specified source and error information and adds it to the end of the collection.

public int Add (Microsoft.AnalysisServices.IModelComponent source, string error, int errorCode);
member this.Add : Microsoft.AnalysisServices.IModelComponent * string * int -> int
Public Function Add (source As IModelComponent, error As String, errorCode As Integer) As Integer

Parameters

source
IModelComponent

The source for the new ValidationError object.

error
String

The error message for the new ValidationError object.

errorCode
Int32

The error code for the new ValidationError object.

Returns

The zero-based index at which the ValidationError has been added to the collection.

Applies to

Add(IModelComponent, String, ErrorPriority, Int32)

Creates a new ValidationError object using the specified source and error information and adds it to the end of the collection.

public int Add (Microsoft.AnalysisServices.IModelComponent source, string error, Microsoft.AnalysisServices.ErrorPriority priority, int errorCode);
member this.Add : Microsoft.AnalysisServices.IModelComponent * string * Microsoft.AnalysisServices.ErrorPriority * int -> int
Public Function Add (source As IModelComponent, error As String, priority As ErrorPriority, errorCode As Integer) As Integer

Parameters

source
IModelComponent

The source for the new ValidationError object.

error
String

The error message for the new ValidationError object.

priority
ErrorPriority

The error priority for the new ValidationError object.

errorCode
Int32

The error code for the new ValidationError object.

Returns

The zero-based index at which the ValidationError has been added to the collection.

Applies to