Clear
This method clears all the roles in the roles collection.
Declaration
// C# public void clear();
Exceptions
InvalidOperationException - It is thrown when the connection is already open.
Remarks
This method only clears entries from the OracleRoleCollection
object associated with the OracleConnection
object. After clearing the roles and then opening a connection, ODP.NET does not enable nor disable any session roles due to the empty OracleRoleCollection
object. For a session to have no roles enabled, add NONE
to the OracleRoleCollection
object.