原文:
一、SerialPort Class
.NET Framework Edition: .NET Framework 4.6 and 4.5
Effect: Represents a serial port resource.
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.
Name |
Description |
Initializes a new instance of the SerialPort class. |
|
Initializes a new instance of the SerialPort class using the specified IContainer object. |
|
Initializes a new instance of the SerialPort class using the specified port name. |
|
Initializes a new instance of the SerialPort class using the specified port name and baud rate. |
|
Initializes a new instance of the SerialPort class using the specified port name, baud rate, and parity bit. |
|
Initializes a new instance of the SerialPort class using the specified port name, baud rate, parity bit, and data bits. |
|
Initializes a new instance of the SerialPort class using the specified port name, baud rate, parity bit, data bits, and stop bit. |
Name |
Description |
Gets the underlying Stream object for a SerialPort object. |
|
Gets or sets the serial baud rate. |
|
Gets or sets the break signal state. |
|
Gets the number of bytes of data in the receive buffer. |
|
Gets the number of bytes of data in the send buffer. |
|
Gets a value indicating whether the component can raise an event. (Inherited from Component.) |
|
Gets the state of the Carrier Detect line for the port. |
|
Gets the IContainer that contains the Component. (Inherited from Component.) |
|
Gets the state of the Clear-to-Send line. |
|
剩余内容已隐藏,支付完成后下载完整资料 SerialPort 类和SQL语句一、SerialPort 类.NET Framework 版本号:.NET Framework 4.6 和 4.5 作用:表示串行端口资源。
System.Object
命名空间: System.IO.Ports 语法(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 类的新实例。 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 |
以上是毕业论文外文翻译,课题毕业论文、任务书、文献综述、开题报告、程序设计、图纸设计等资料可联系客服协助查找。