ValidationErrorCollection.Add Method (IModelComponent, String, ErrorPriority)

 

Applies To: SQL Server (starting with 2016)

Creates and adds a ValidationError, with the specified IModelComponent value, error description, and ErrorPriority value, to the end of the collection.

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

Syntax

public int Add(
    IModelComponent source,
    string error,
    ErrorPriority priority
)
public:
int Add(
    IModelComponent^ source,
    String^ error,
    ErrorPriority priority
)
member Add : 
        source:IModelComponent *
        error:string *
        priority:ErrorPriority -> int
Public Function Add (
    source As IModelComponent,
    error As String,
    priority As ErrorPriority
) As Integer

Parameters

Return Value

Type: System.Int32

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

See Also

Add Overload
ValidationErrorCollection Class
Microsoft.AnalysisServices Namespace

Return to top