DeviceExceptionCreateUnauthorizedAccessException Method HIDSharp
Initializes a new instance of the UnauthorizedAccessException class, and associates a Device with it.

Namespace: HidSharp
Assembly: HidSharp (in HidSharp.dll) Version: 2.0.0
Syntax

public static UnauthorizedAccessException CreateUnauthorizedAccessException(
	Device device,
	string message
)

Parameters

device
Type: HidSharpDevice
The device that caused the exception.
message
Type: SystemString
A description of the error.

Return Value

Type: UnauthorizedAccessException
The new UnauthorizedAccessException.
See Also

Reference