Search Results for

    Show / Hide Table of Contents

    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

    • Improve this Doc
    • View Source
    In This Article
    Back to top © Copyright 2023 The Npgsql Development Team