Metoda ValidationErrorCollection.Add (IModelComponent, String, Int32)
Tworzy i dodaje ValidationError, o określonym IModelComponent wartość, opis błędu i kod błędu, na koniec kolekcja.
Przestrzeń nazw: Microsoft.AnalysisServices
Zestaw: Microsoft.AnalysisServices (w Microsoft.AnalysisServices.dll)
Składnia
'Deklaracja
Public Function Add ( _
source As IModelComponent, _
error As String, _
errorCode As Integer _
) As Integer
'Użycie
Dim instance As ValidationErrorCollection
Dim source As IModelComponent
Dim error As String
Dim errorCode As Integer
Dim returnValue As Integer
returnValue = instance.Add(source, error, _
errorCode)
public int Add(
IModelComponent source,
string error,
int errorCode
)
public:
int Add(
IModelComponent^ source,
String^ error,
int errorCode
)
member Add :
source:IModelComponent *
error:string *
errorCode:int -> int
public function Add(
source : IModelComponent,
error : String,
errorCode : int
) : int
Parametry
- source
Typ: Microsoft.AnalysisServices.IModelComponent
IModelComponent Wartość ValidationError do dodania.
- error
Typ: System.String
Opis błędu ValidationError do dodania.
- errorCode
Typ: System.Int32
Kod błędu ValidationError do dodania.
Wartość zwracana
Typ: System.Int32
Indeks od zera, jaką ValidationError została dodana.
Zobacz także