SerialPort 类和SQL语句外文翻译资料

 2022-08-17 14:30:56

原文:

一、SerialPort Class

.NET Framework Edition: .NET Framework 4.6 and 4.5

Effect: Represents a serial port resource.

Inheritance Hierarchy:

System.Object
System.MarshalByRefObject
System.ComponentModel.Component
System.IO.Ports.SerialPort

Namespace: System.IO.Ports
Assembly: System (in System.dll)

Syntax(C#):

public class SerialPort : Component

The SerialPort type exposes the following members.

1.Constructors

Name

Description

SerialPort()

Initializes a new instance of the SerialPort class.

SerialPort(IContainer)

Initializes a new instance of the SerialPort class using the specified IContainer object.

SerialPort(String)

Initializes a new instance of the SerialPort class using the specified port name.

SerialPort(String, Int32)

Initializes a new instance of the SerialPort class using the specified port name and baud rate.

SerialPort(String, Int32, Parity)

Initializes a new instance of the SerialPort class using the specified port name, baud rate, and parity bit.

SerialPort(String, Int32, Parity, Int32)

Initializes a new instance of the SerialPort class using the specified port name, baud rate, parity bit, and data bits.

SerialPort(String, Int32, Parity, Int32, StopBits)

Initializes a new instance of the SerialPort class using the specified port name, baud rate, parity bit, data bits, and stop bit.

2.Properties

Name

Description

BaseStream

Gets the underlying Stream object for a SerialPort object.

BaudRate

Gets or sets the serial baud rate.

BreakState

Gets or sets the break signal state.

BytesToRead

Gets the number of bytes of data in the receive buffer.

BytesToWrite

Gets the number of bytes of data in the send buffer.

CanRaiseEvents

Gets a value indicating whether the component can raise an event. (Inherited from Component.)

CDHolding

Gets the state of the Carrier Detect line for the port.

Container

Gets the IContainer that contains the Component. (Inherited from Component.)

CtsHolding

Gets the state of the Clear-to-Send line.

DataBits

剩余内容已隐藏,支付完成后下载完整资料


SerialPort 类和SQL语句

一、SerialPort 类

.NET Framework 版本号:.NET Framework 4.6 和 4.5

作用:表示串行端口资源。

继承层次结构

System.Object
System.MarshalByRefObject
System.ComponentModel.Component
System.IO.Ports.SerialPort

命名空间: System.IO.Ports
程序集: System(在 System.dll 中)

语法(C#):

public class SerialPort : Component

SerialPort 类型公开以下成员:

1、构造函数

SerialPort():初始化 SerialPort 类的新实例。

SerialPort(IContainer):使用指定的 IContainer 对象初始化 SerialPort 类的新实例。

SerialPort(String):使用指定的端口名称初始化 SerialPort 类的新实例。

SerialPort(String, Int32):使用指定的端口名称和波特率初始化 SerialPort 类的新实例。

SerialPort(String, Int32, Parity):使用指定的端口名称、波特率和奇偶校验位初始化 SerialPort 类的新实例。

SerialPort(String, Int32, Parity, Int32):使用指定的端口名称、波特率、校验位和数据位初始化 SerialPort 类的新实例。

SerialPort(String, Int32, Parity, Int32, StopBits):使用指定的端口名称、波特率、奇偶校验位、数据位和停止位初始化 SerialPort 类的新实例。

  1. 属性

BaseStream:获取 SerialPort 对象的基础 Stream 对象。

BaudRate:获取或设置串行波特率。

BreakState:获取或设置中断信号状态。

BytesToRead:获取接收缓冲区中数据的字节数。

BytesToWrite:获取发送缓冲区中数据的字节数。

CanRaiseEvents:获取一个指示组件是否可以引发事件的值。 (继承自 Component。)

CDHolding:获取端口的载波检测行的状态。

Container:获取 IContainer,它包含 Component。 (继承自 Component。)

CtsHolding:获取“可以发送”行的状态。

DataBits:获取或设置每个字节的标准数据位长度。

DesignMode:获取一个值,用以指示 Component 当前是否处于设计模式。 (继承自 Component。)

DiscardNull:获取或设置一个值,该值指示 Null 字节在端口和接收缓冲区之间传输时是否被忽略。

DsrHolding:获取数据设置就绪 (DSR) 信号的状态。

DtrEnable:获取或设置一个值,该值在串行通信过程中启用数据终端就绪 (DTR) 信号。

Encoding:获取或设置传输前后文本转换的字节编码。

Events:获取附加到此 Component 的事件处理程序的列表。 (继承自 Component。)

Handshake:获取或设置

剩余内容已隐藏,支付完成后下载完整资料


资料编号:[505643],资料为PDF文档或Word文档,PDF文档可免费转换为Word

原文和译文剩余内容已隐藏,您需要先支付 30元 才能查看原文和译文全部内容!立即支付

以上是毕业论文外文翻译,课题毕业论文、任务书、文献综述、开题报告、程序设计、图纸设计等资料可联系客服协助查找。