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

    Int32 port

    Port

    String database

    Database Name

    String username

    User

    Returns
    Type Description
    String

    A valid password for connecting to the database

    In This Article
    Back to top © Copyright 2022 The Npgsql Development Team