Delegate ProvidePasswordCallback
Represents a method that allows the application to provide a password at connection time in code rather than configuration
Namespace: Npgsql
Assembly: Npgsql.dll
Syntax
public delegate string ProvidePasswordCallback(string host, int port, string database, string username)
Parameters
Type | Name | Description |
---|---|---|
string | host | Hostname |
int | port | Port |
string | database | Database Name |
string | username | User |
Returns
Type | Description |
---|---|
string | A valid password for connecting to the database |