UserContextRemoveDeviceToken Method |
If non admin user: removes the current device token OR removes all device tokens of the current user so that they are no longer valid.
If admin user: can remove device token(s) of a different user if the other user's info is specified in the arguments. Otherwise works like non admin user.
Namespace:
NetQuarry.Security
Assembly:
EAP.Core (in EAP.Core.dll) Version: 2.0.0.0 (4.6.8.0)
Syntax public void RemoveDeviceToken(
IAppContext appCxt,
bool allDevices,
string deviceToken = null,
string userGUID = null
)
Public Sub RemoveDeviceToken (
appCxt As IAppContext,
allDevices As Boolean,
Optional deviceToken As String = Nothing,
Optional userGUID As String = Nothing
)
Parameters
- appCxt
- Type: NetQuarryIAppContext
The application context object. - allDevices
- Type: SystemBoolean
True if all device tokens of the user are to be removed. - deviceToken (Optional)
- Type: SystemString
If current user is admin and allDevices is false, removes the device that has device token matching deviceToken. - userGUID (Optional)
- Type: SystemString
If current user is admin and allDevices is true, removes the devices of the user with user guid of userGUID.
See Also