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
参数
- errors
类型:Microsoft.AnalysisServices. . :: . .ValidationErrorCollection
A collection within which errors can be logged.
- includeDetailedErrors
类型:System. . :: . .Boolean
true if detailed errors is enabled; otherwise false.
返回值
类型:System. . :: . .Boolean
A collection of errors encountered.