PosSharp v1.2.0 API Reference

--- #### [PosSharp\.Core](PosSharp.Core 'PosSharp\.Core') ### [PosSharp\.Core](PosSharp.Core 'PosSharp\.Core').[UposDeviceBase](PosSharp.Core.UposDeviceBase 'PosSharp\.Core\.UposDeviceBase') ## UposDeviceBase\.VerifyState\(ControlState\[\]\) Method Verifies that the device is in one of the allowed states\. ```csharp protected void VerifyState(params PosSharp.Abstractions.ControlState[] allowedStates); ``` #### Parameters `allowedStates` [PosSharp\.Abstractions\.ControlState](https://learn.microsoft.com/en-us/dotnet/api/possharp.abstractions.controlstate 'PosSharp\.Abstractions\.ControlState')[\[\]](https://learn.microsoft.com/en-us/dotnet/api/system.array 'System\.Array') The allowed states\. #### Exceptions [UposStateException](PosSharp.Core.UposStateException 'PosSharp\.Core\.UposStateException') Thrown when verification fails\.