UsePassword(password)

This method sets the OracleDataSource password.

Declaration

// C#
public OracleDataSourceBuilder UsePassword(string password)

Parameters

  • password

    The database user password.

Return Value

The OracleDataSourceBuilder itself allowing additional OracleDataSourceBuilder methods to be chained.

Remarks

If a null value is the input parameter, connections will then use the connection string password.

If the password has zero length, ODP.NET throws ArgumentException of ORA-50029.