Fork me on GitHubEpicdominant domains
APIEpic.OrganizationWorkingSessionBaseLeave<(Of <<'(TRole>)>>)(TRole%)

Leave<(Of <(<'TRole>)>)> Method (role)
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#
public 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.
Remarks

The role will be disposed when the number of call to Achieve<(Of <<'(TRole>)>>)(TRole%) will be balanced with the calls to this method.

In other world you must leave the achieved roles exactly the same number of times you achieved each one.

Exceptions
ExceptionCondition
ArgumentNullExceptionThe role is nullNothingnullptr.
ArgumentExceptionThe role is unknown to the session.
blog comments powered by Disqus