ConnectionBasedModelProvider.Validate Method
Validates the connection.
Namespace: Microsoft.VisualStudio.Data.Schema.Project.SchemaAndDataCompare
Assembly: Microsoft.VisualStudio.Data.Schema.Project (in Microsoft.VisualStudio.Data.Schema.Project.dll)
Syntax
'Declaration
Public Overrides Function Validate ( _
<OutAttribute> ByRef errorMessage As String _
) As Boolean
'Usage
Dim instance As ConnectionBasedModelProvider
Dim errorMessage As String
Dim returnValue As Boolean
returnValue = instance.Validate(errorMessage)
public override bool Validate(
out string errorMessage
)
public:
virtual bool Validate(
[OutAttribute] String^% errorMessage
) override
public override function Validate(
errorMessage : String
) : boolean
abstract Validate :
errorMessage:string -> bool
override Validate :
errorMessage:string -> bool
Parameters
- errorMessage
Type: System.String%
The resulting error messages, if any
Return Value
Type: System.Boolean
Returns true if schema compare can handle the server and database, false otherwise.
Implements
IModelProvider.Validate(String%)
.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.
See Also
Reference
ConnectionBasedModelProvider Class
ConnectionBasedModelProvider Members
Microsoft.VisualStudio.Data.Schema.Project.SchemaAndDataCompare Namespace