Share via


SchemaCompareModelProviderBase.Validate Method

Returns a value that indicates whether the connection string can connect to a server and database version that can be compared.

Namespace:  Microsoft.Data.Schema.Tools.Compare.Schema
Assembly:  Microsoft.Data.Schema.Tools (in Microsoft.Data.Schema.Tools.dll)

Syntax

'Declaration
Public Overridable Function Validate ( _
    <OutAttribute> ByRef errorMessage As String _
) As Boolean
public virtual bool Validate(
    out string errorMessage
)
public:
virtual bool Validate(
    [OutAttribute] String^% errorMessage
)
abstract Validate : 
        errorMessage:string byref -> bool 
override Validate : 
        errorMessage:string byref -> bool 
public function Validate(
    errorMessage : String
) : boolean

Parameters

  • errorMessage
    Type: System.String%
    (Output) A string that contains an error message if the validation fails.

Return Value

Type: System.Boolean
true if the connection string connects to a comparable server and database version; otherwise, false, and more information is provided in the output parameter.

Implements

ISchemaCompareModelProvider.Validate(String%)

.NET Framework Security

See Also

Reference

SchemaCompareModelProviderBase Class

Microsoft.Data.Schema.Tools.Compare.Schema Namespace