ValidationErrorCollection.Add Method (IModelComponent, String)
Applies To: SQL Server (starting with 2016)
Creates and adds a ValidationError, with the specified IModelComponent value and error description, 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
)
public:
int Add(
IModelComponent^ source,
String^ error
)
member Add :
source:IModelComponent *
error:string -> int
Public Function Add (
source As IModelComponent,
error As String
) 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.
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