共用方式為


ModelComponent.Validate 方法 (ValidationErrorCollection, Boolean)

Validates the element to which it is appended; returns any errors encountered in a collection. Also contains a parameter to enable return of detailed errors.

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

語法

'宣告
Public Function Validate ( _
    errors As ValidationErrorCollection, _
    includeDetailedErrors As Boolean _
) As Boolean
'用途
Dim instance As ModelComponent 
Dim errors As ValidationErrorCollection 
Dim includeDetailedErrors As Boolean 
Dim returnValue As Boolean 

returnValue = instance.Validate(errors, _
    includeDetailedErrors)
public bool Validate(
    ValidationErrorCollection errors,
    bool includeDetailedErrors
)
public:
bool Validate(
    ValidationErrorCollection^ errors, 
    bool includeDetailedErrors
)
member Validate : 
        errors:ValidationErrorCollection * 
        includeDetailedErrors:bool -> bool
public function Validate(
    errors : ValidationErrorCollection, 
    includeDetailedErrors : boolean
) : boolean

參數

  • includeDetailedErrors
    型別:System.Boolean
    true if detailed errors is enabled; otherwise false.

傳回值

型別:System.Boolean
A collection of errors encountered.

請參閱

參考

ModelComponent 類別

Validate 多載

Microsoft.AnalysisServices 命名空間