6.10.2.2 OracleDatabaseコンストラクタ(string, OracleCredential)
OracleDatabase
コンストラクタは、指定された接続文字列およびOracleCredential
オブジェクトを使用してOracleDatabase
クラスの新規インスタンスをインスタンス化します。
宣言
// C# public OracleDatabase(string connectionString, OracleCredential orclCredential)
パラメータ
-
connectionString
user id
、password
、DBA Privilege
、proxy user id
またはproxy password
のいずれも含まない接続文字列。 -
orclCredential
ユーザー資格証明を含む
OracleCredential
オブジェクト。このパラメータがnullとして渡される場合、OracleConnection
の動作は通常の接続文字列を持つOracleConnection
と同じです。
例外
user id
、password
、DBA Privilege
、proxy user id
またはproxy password
のいずれかを含む接続文字列でnull以外のOracleCredential
オブジェクトが使用されている場合、InvalidOperationException
が発生します。