Delen via


InvalidProtocolVersionException Class

Definition

The exception that is thrown when IoT hub receives an invalid protocol version number. Note: This exception is currently not thrown by the client library.

[System.Serializable]
public class InvalidProtocolVersionException : Microsoft.Azure.Devices.Common.Exceptions.IotHubException
[<System.Serializable>]
type InvalidProtocolVersionException = class
    inherit IotHubException
Public Class InvalidProtocolVersionException
Inherits IotHubException
Inheritance
InvalidProtocolVersionException
Attributes

Constructors

InvalidProtocolVersionException(SerializationInfo, StreamingContext)

Creates an instance of InvalidProtocolVersionException with the SerializationInfo and StreamingContext associated with the exception.

InvalidProtocolVersionException(String)

Creates an instance of InvalidProtocolVersionException with the specified protocol version number and marks it as non-transient.

Properties

Code

The error code associated with the exception.

(Inherited from IotHubException)
IsTransient

Indicates if the error is transient and should be retried.

(Inherited from IotHubException)
RequestedVersion

The protocol version number sent to IoT hub.

TrackingId

The service returned tracking Id associated with this particular error.

(Inherited from IotHubException)

Methods

GetObjectData(SerializationInfo, StreamingContext)

Sets the SerializationInfo with information about the exception. Use this to set IsTransient and TrackingId to the serialized object data.

Applies to