DeviceAccessRefusedException
Class in Oadm.Sdk.Plugins · Oadm.Sdk.dll
The host refused device access during the call of a user with a device group (SDK 0.4.0, OADM 4.5): the plugin used ctx.Devices, ctx.Vapix, ctx.Tasks, ctx.EventStreams or ctx.System instead of the call (ICallContext), the method is one only users with all devices may call (ICorePlugin.RequiresAllDevices), the plugin was built for an SDK before the call context, or a task run through call.Tasks needs a permission the user’s role lacks (“Your role does not allow: …”). The host answers PERMISSION_DENIED with Exception.Message; nothing reached a device.
public sealed class DeviceAccessRefusedException : ExceptionInherits Exception
Guide: Device groups and the call context
Constructors
Section titled “Constructors”DeviceAccessRefusedException
Section titled “DeviceAccessRefusedException”DeviceAccessRefusedException()With DeviceAccessRefusedException.AllDevicesOnly.
DeviceAccessRefusedException
Section titled “DeviceAccessRefusedException”DeviceAccessRefusedException(string message)With an own message for the user.
DeviceAccessRefusedException
Section titled “DeviceAccessRefusedException”DeviceAccessRefusedException(string message, Exception innerException)With an own message and the cause.
Fields
Section titled “Fields”AllDevicesOnly
Section titled “AllDevicesOnly”const string AllDevicesOnly = "Only users with all devices can do this."The refusal of a method or a device access only users with all devices may use.
PluginNeedsAllDevices
Section titled “PluginNeedsAllDevices”const string PluginNeedsAllDevices = "Only users with all devices can use this plugin."The refusal of a plugin built for an SDK before 0.4.0, for a user with a device group.