ValidationErrorCollection.Add Method (IModelComponent, String, ErrorPriority, Int32)
Applies To: SQL Server (starting with 2016)
Creates and adds a ValidationError, with the specified IModelComponent value, error description, ErrorPriority value, and error code, 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,
int errorCode
)
public:
int Add(
IModelComponent^ source,
String^ error,
ErrorPriority priority,
int errorCode
)
member Add :
source:IModelComponent *
error:string *
priority:ErrorPriority *
errorCode:int -> int
Public Function Add (
source As IModelComponent,
error As String,
priority As ErrorPriority,
errorCode As Integer
) As Integer
Parameters
source
Type: Microsoft.AnalysisServices.IModelComponentThe IModelComponent value of the ValidationError to add.
error
Type: System.StringThe error description of the ValidationError to add.
priority
Type: Microsoft.AnalysisServices.ErrorPriorityThe ErrorPriority value of the ValidationError to add.
errorCode
Type: System.Int32The error code of the ValidationError to add.
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