Leave the specified role.
After calling this method, your role will be disposed
and the reference to role will be set to nullNothingnullptr.
Assembly: Epic.Core
Declaration Syntax
| C# |
void Leave<TRole>( ref TRole role ) where TRole : class
Generic Template Parameters
- TRole
- The type of the role to leave.
Parameters
- role (TRole%)
- User's role to be disposed.
Exceptions
| Exception | Condition |
|---|---|
| ArgumentNullException | The role is nullNothingnullptr. |
| ArgumentException | The role is unknown to the session. |
