EnableConnectionStringAllowedProperties(string, bool)
This method accepts an allowed connection configuration parameter list in a JSON string format.
Declaration
// C# public static void EnableConnectionStringAllowedProperties(string allowList, bool enforceOnAlias)
Parameters
-
allowList
Allowed parameters list in JSON string format
-
enforceOnAlias
Whether to enforce the allowed parameters list on TNS aliases
Exceptions
None.
Remarks
ODP.NET will check the connection string Data Source if any disallowed parameters are included. If so, the request will not be allowed to connect.
Applications can invoke this EnableConnectionStringAllowedProperties
method anytime during runtime with a new allowed list. The new settings will apply to new non-pooled connections and new connection pools created henceforth.
For existing connection pools, the new settings are applied after ClearPool()
or ClearAllPools()
is invoked.
See Also:
-
"Oracle.DataAccess.Client and Oracle.ManagedDataAccess.Client Namespaces"
-
Connection Configuration Restriction for JSON string format, examples, and details