共用方式為


ValidationError 建構函式 (IModelComponent, String, ErrorPriority, Int32)

Initializes a new instance of the ValidationError class.

命名空間:  Microsoft.AnalysisServices
組件:  Microsoft.AnalysisServices (在 Microsoft.AnalysisServices.dll 中)

語法

'宣告
Public Sub New ( _
    source As IModelComponent, _
    error As String, _
    priority As ErrorPriority, _
    errorCode As Integer _
)
'用途
Dim source As IModelComponent 
Dim error As String 
Dim priority As ErrorPriority 
Dim errorCode As Integer 

Dim instance As New ValidationError(source, _
    error, priority, errorCode)
public ValidationError(
    IModelComponent source,
    string error,
    ErrorPriority priority,
    int errorCode
)
public:
ValidationError(
    IModelComponent^ source, 
    String^ error, 
    ErrorPriority priority, 
    int errorCode
)
new : 
        source:IModelComponent * 
        error:string * 
        priority:ErrorPriority * 
        errorCode:int -> ValidationError
public function ValidationError(
    source : IModelComponent, 
    error : String, 
    priority : ErrorPriority, 
    errorCode : int
)

參數

請參閱

參考

ValidationError 類別

ValidationError 多載

Microsoft.AnalysisServices 命名空間