Delegate ProvidePasswordCallback
Represents the 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 |
---|---|---|
System.String | host | Hostname |
System.Int32 | port | Port |
System.String | database | Database Name |
System.String | username | User |
Returns
Type | Description |
---|---|
System.String | A valid password for connecting to the database |