OpenWithNewPasswordAsync(SecureString)

This method opens a new connection asynchronously with a new SecureString password.

Declaration

// C#
public Task OpenWithNewPasswordAsync(SecureString newSecurePassword);

Parameters

Return Value

Task object representing the asynchronous operation immediately without blocking the calling thread for the whole duration of opening connection.

Exceptions

Remarks

Use this method to change the password for a user id. This method can only be used if an OracleCredential instance was passed using the OracleConnection constructor or through the OracleConnection Credential property.

This method will also update the password in the OracleCredential instance that was passed using the OracleConnection constructor or through the OracleConnection Credential property.

OracleCredential does not support double quotes around a SecureString password. However, double quotes can be used within a password.

See Also: