CreateWithNewEndUserName(string endUserName)
This method creates a new end-user security context with a replacement end-user name and preserves all other values from the existing context.
Declaration
// C#
public OracleEndUserSecurityContext CreateWithNewEndUserName(string endUserName)Parameters
-
endUserNameThe end-user name to associate with the security context.
Return Value
A new OracleEndUserSecurityContext with the updated end-user name.
Exceptions
ArgumentException - Thrown if endUserName is null or empty.
Remarks
This method:
-
Validates the provided end-user name string is non-null and non-empty.
-
Leaves the original end-user security context unchanged.
The end-user name should be enclosed in double-quotes if the end user was declared using a quoted identifier.