CreateWithNewEndUserName(string endUserName, string lookUpKey)

This method creates a new end-user security context with a replacement end-user name and lookup key while preserving all other values from the existing context.

Declaration

// C#
public OracleEndUserSecurityContext CreateWithNewEndUserName(string endUserName, string lookUpKey)

Parameters

  • endUserName

    The end-user name to associate with the security context.

  • lookUpKey

    A unique lookup key used for additional identification, mapping, or routing logic within the database or application context.

Return Value

A new OracleEndUserSecurityContext with the updated end-user name and lookup key.

Exceptions

ArgumentException - Thrown if endUserName or lookUpKey is null or empty.

Remarks

This method:

  • Validates the provided end-user name and lookup key strings are non-null/non-empty.

  • The original object is unchanged.

The end-user name should be enclosed in double-quotes if the end user was declared using a quoted identifier.