Share via


SchemaCompareFileBasedModelProvider.Validate Method

Returns a value that indicates whether the file name refers to an existing file, and if not, returns an error message.

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 a problem occurred during validation.

Return Value

Type: System.Boolean
true if the DatabaseFileName property is empty or refers to a file that does not exist.

Implements

ISchemaCompareModelProvider.Validate(String%)

Remarks

Notes to Inheritors

This method also initializes some internal values. Therefore, if you override this method, make sure that you call the base method before you change any values.

.NET Framework Security

See Also

Reference

SchemaCompareFileBasedModelProvider Class

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