UnauthorizedException Class
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
The exception that is thrown when there is an authorization error.
[System.Serializable]
public sealed class UnauthorizedException : Microsoft.Azure.Devices.Client.Exceptions.IotHubException
[<System.Serializable>]
type UnauthorizedException = class
inherit IotHubException
Public NotInheritable Class UnauthorizedException
Inherits IotHubException
- Inheritance
- Attributes
This exception means the client is not authorized to use the specified IoT hub. Please review the 401003 IoTHubUnauthorized guide for more information.
Unauthorized |
Initializes a new instance of the class. |
Unauthorized |
Initializes a new instance of the class. |
Unauthorized |
Initializes a new instance of the class. |
Is |
Indicates if the error is transient and should be retried. (Inherited from IotHubException) |
Tracking |
The service returned tracking Id associated with this particular error. (Inherited from IotHubException) |
Get |
Sets the SerializationInfo with information about the exception. Use this to set IsTransient and TrackingId to the serialized object data. (Inherited from IotHubException) |
Product | Versions |
---|---|
Azure SDK for .NET | Legacy, Latest |
Azure SDK for .NET feedback
Azure SDK for .NET is an open source project. Select a link to provide feedback: