Version

FilterConnectionString Method

Allows WebScheduleDbProvider subclasses an opportunity to validate or filter an assigned ConnectionString before the Connection is opened.
Syntax
'Declaration
 
Protected Overridable Function FilterConnectionString( _
   ByVal newConnectionString As String, _
   ByVal currentConnectionString As String _
) As String
protected virtual string FilterConnectionString( 
   string newConnectionString,
   string currentConnectionString
)

Parameters

newConnectionString
The new value for the ConnectionString property that has been assigned.
currentConnectionString

Return Value

The filtered newConnectionString, with any invalid properties stripped or altered as determined by the implementation of this method. The implementation of this method may return currentConnectionString if the connection string assignment should be rejected.
Remarks

The base class implementation of FilterConnectionString performs no filtering or validation. It always returns newConnectionString.

Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also