OracleCredential(string, SecureString, OracleDBAPrivilege)
This constructor creates an OracleCredential
object with the user id, the secured password, and the DBA privilege request.
Declaration
// C# public OracleCredential(string userId, SecureString password, OracleDBAPrivilege dbaprivilege)
Exceptions
-
ArgumentNullException
is raised if any parameters are passed as null. -
ArgumentException
is raised if “/
” is passed foruserId
argument. -
ArgumentException
is raised if theSecureString
containing the password is not read-only. -
InvalidOperationException
is raised whenOracleCredential
object is used with any ofuser id
,password
,proxy user id
,proxy password
and/ordba privilege
connection string attribute(s) present in the connection string.
Remarks
With this constructor, the specified dbaprivilege
is for the DBA privilege when requesting for a connection.