Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

UserCredentialsDbProvider.SetCredentialsForCurrentThread Method

Sets the user credentials for current thread. The given username and password strings will be added to the connection string for all subsequent GetConnection requests. This will override any statically specified user credentials, that is, set by the properties Username nad Password.

[Visual Basic]
Public Sub SetCredentialsForCurrentThread( _
   ByVal user As String, _
   ByVal pass As String _
public void SetCredentialsForCurrentThread(
   string user,
   string pass


The username part of the connection string.
The password part of the connection string.

See Also

UserCredentialsDbProvider Class | Spring.Data.Common Namespace