DatabaseTaskHost.OnRunBuildValidations Method
Use this method to visit your model to look for elements that violate any validation rules.
Namespace: Microsoft.Data.Schema.Build
Assembly: Microsoft.Data.Schema (in Microsoft.Data.Schema.dll)
Syntax
'Declaration
Protected Overridable Sub OnRunBuildValidations ( _
errorManager As ErrorManager _
)
protected virtual void OnRunBuildValidations(
ErrorManager errorManager
)
protected:
virtual void OnRunBuildValidations(
ErrorManager^ errorManager
)
abstract OnRunBuildValidations :
errorManager:ErrorManager -> unit
override OnRunBuildValidations :
errorManager:ErrorManager -> unit
protected function OnRunBuildValidations(
errorManager : ErrorManager
)
Parameters
- errorManager
Type: Microsoft.Data.Schema.ErrorManager
Used to report errors that occur.
Remarks
If you find an element that violates a validation rule, create an error in the errorManager with a build category of ValidationAtBuildCategory.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.