ErrorReceivedEventArgs 类
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
表示作为参数传递给在串行端口上发生错误时调用的事件处理程序的对象。
public ref class ErrorReceivedEventArgs sealed
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
class ErrorReceivedEventArgs final
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
public sealed class ErrorReceivedEventArgs
Public NotInheritable Class ErrorReceivedEventArgs
- 继承
- 属性
Windows 要求
设备系列 |
Windows 10 (在 10.0.10240.0 中引入)
|
API contract |
Windows.Foundation.UniversalApiContract (在 v1.0 中引入)
|
注解
ErrorReceivedEventArgs 用于确定错误条件的类型。 当端口上发生错误时,将调用以前注册的 ErrorReceived 事件处理程序。 该事件处理程序的参数是 ErrorReceivedEventArgs 对象。 调用事件处理程序后,可以使用 Error 属性确定错误条件。
属性
Error |
获取接收的字符类型,该字符类型导致串行端口上的 事件。 |
适用于
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈