OracleCredential(string, SecureString)
This constructor creates an OracleCredential object with the user id and the secured password.
Declaration
// C# public OracleCredential(string userId, SecureString password)
Exceptions
-
ArgumentNullExceptionis raised if any parameters are passed as null. -
ArgumentExceptionis raised if “/” is passed foruserIdargument. -
ArgumentExceptionis raised if theSecureStringcontaining the password is not read-only. -
InvalidOperationExceptionis raised whenOracleCredentialobject is used with any ofuser id,password,proxy user id,proxy passwordand/ordba privilegeconnection string attribute(s) present in the connection string.
Remarks
With this constructor, OracleDBAPrivilege.None is used for the DBA privilege when requesting for a connection.