SchemaCompareConnectionBasedModelProvider.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 Overrides Function Validate ( _
    <OutAttribute> ByRef errorMessage As String _
) As Boolean
public override bool Validate(
    out string errorMessage
)
public:
virtual bool Validate(
    [OutAttribute] String^% errorMessage
) override
abstract Validate : 
        errorMessage:string byref -> bool 
override Validate : 
        errorMessage:string byref -> bool 
public override 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 errorMessage output parameter.

Implements

ISchemaCompareModelProvider.Validate(String%)

.NET Framework Security

See Also

Reference

SchemaCompareConnectionBasedModelProvider Class

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