ValidationErrorCollection.Add Yöntemi (IModelComponent, String, ErrorPriority)
Oluşturur ve ekler bir ValidationError, belirtilen ile IModelComponent değer, hata açıklaması ve ErrorPriority sonuna kadar değer koleksiyon.
Ad Alanı: Microsoft.AnalysisServices
Derleme: Microsoft.AnalysisServices (Microsoft.AnalysisServices içinde.dll)
Sözdizimi
'Bildirim
Public Function Add ( _
source As IModelComponent, _
error As String, _
priority As ErrorPriority _
) As Integer
'Kullanım
Dim instance As ValidationErrorCollection
Dim source As IModelComponent
Dim error As String
Dim priority As ErrorPriority
Dim returnValue As Integer
returnValue = instance.Add(source, error, _
priority)
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 : IModelComponent,
error : String,
priority : ErrorPriority
) : int
Parametreler
- source
Tür: Microsoft.AnalysisServices.IModelComponent
IModelComponent Değeri ValidationError eklenecek
- error
Tür: System.String
Hata açıklaması ValidationError eklenecek
- priority
Tür: Microsoft.AnalysisServices.ErrorPriority
ErrorPriority Değeri ValidationError eklenecek
Dönüş Değeri
Tür: System.Int32
Sıfır tabanlı dizin veren ValidationError eklenmiştir.
Ayrıca bkz.