你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
DeviceNotFoundException 构造函数
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
DeviceNotFoundException() |
初始化此类的新实例。 |
DeviceNotFoundException(String) |
使用包含找不到的设备标识符的消息字符串初始化 类的新实例。 |
DeviceNotFoundException(SerializationInfo, StreamingContext) |
使用指定的序列化和上下文信息初始化 类的新实例。 |
DeviceNotFoundException(String, Exception) |
使用消息字符串初始化 类的新实例,其中包含找不到的设备标识符和对此异常原因的内部异常的引用。 |
DeviceNotFoundException(String, String) |
使用包含设备标识符和找不到的 IoT 中心实例的消息字符串初始化 类的新实例。 |
DeviceNotFoundException(String, String, String) |
使用包含找不到的设备标识符的消息字符串初始化 类的新实例。 |
DeviceNotFoundException()
初始化此类的新实例。
public DeviceNotFoundException ();
Public Sub New ()
适用于
DeviceNotFoundException(String)
使用包含找不到的设备标识符的消息字符串初始化 类的新实例。
public DeviceNotFoundException (string deviceId);
new Microsoft.Azure.Devices.Client.Exceptions.DeviceNotFoundException : string -> Microsoft.Azure.Devices.Client.Exceptions.DeviceNotFoundException
Public Sub New (deviceId As String)
参数
- deviceId
- String
已存在的设备标识符。
适用于
DeviceNotFoundException(SerializationInfo, StreamingContext)
使用指定的序列化和上下文信息初始化 类的新实例。
public DeviceNotFoundException (System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
new Microsoft.Azure.Devices.Client.Exceptions.DeviceNotFoundException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> Microsoft.Azure.Devices.Client.Exceptions.DeviceNotFoundException
Public Sub New (info As SerializationInfo, context As StreamingContext)
参数
- info
- SerializationInfo
保存有关所引发异常的序列化对象数据的对象。
- context
- StreamingContext
一个包含有关源或目标的上下文信息的对象。
适用于
DeviceNotFoundException(String, Exception)
使用消息字符串初始化 类的新实例,其中包含找不到的设备标识符和对此异常原因的内部异常的引用。
public DeviceNotFoundException (string message, Exception innerException);
new Microsoft.Azure.Devices.Client.Exceptions.DeviceNotFoundException : string * Exception -> Microsoft.Azure.Devices.Client.Exceptions.DeviceNotFoundException
Public Sub New (message As String, innerException As Exception)
参数
- message
- String
对错误的说明。 消息的内容被设计为人可理解的形式。 此构造函数的调用方需要确保此字符串已针对当前系统区域性进行了本地化。
- innerException
- Exception
导致当前异常的异常
适用于
DeviceNotFoundException(String, String)
使用包含设备标识符和找不到的 IoT 中心实例的消息字符串初始化 类的新实例。
public DeviceNotFoundException (string deviceId, string iotHubName);
new Microsoft.Azure.Devices.Client.Exceptions.DeviceNotFoundException : string * string -> Microsoft.Azure.Devices.Client.Exceptions.DeviceNotFoundException
Public Sub New (deviceId As String, iotHubName As String)
参数
- deviceId
- String
已存在的设备标识符。
- iotHubName
- String
IoT 中心实例的名称。
适用于
DeviceNotFoundException(String, String, String)
使用包含找不到的设备标识符的消息字符串初始化 类的新实例。
public DeviceNotFoundException (string deviceId, string iotHubName, string trackingId);
new Microsoft.Azure.Devices.Client.Exceptions.DeviceNotFoundException : string * string * string -> Microsoft.Azure.Devices.Client.Exceptions.DeviceNotFoundException
Public Sub New (deviceId As String, iotHubName As String, trackingId As String)
参数
- deviceId
- String
已存在的设备标识符。
- iotHubName
- String
IoT 中心实例的名称。
- trackingId
- String
用于遥测目的的跟踪标识符。