Udostępnij za pośrednictwem


Metoda ValidationErrorCollection.Add (IModelComponent, String)

Tworzy i dodaje ValidationError, o określonym IModelComponent Opis błędów i wartość 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 _
) As Integer
'Użycie
Dim instance As ValidationErrorCollection
Dim source As IModelComponent
Dim error As String
Dim returnValue As Integer

returnValue = instance.Add(source, error)
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 : IModelComponent, 
    error : String
) : int

Parametry

Wartość zwracana

Typ: System.Int32
Indeks od zera, jaką ValidationError została dodana.