Click or drag to resize

ComPortSetComPortSpec(ComPortComPortSpec) Method

Function to set the COM port's specification as defined in the ComPortSpec structure.

Namespace: Crestron.SimplSharpPro
Assembly: SimplSharpPro (in SimplSharpPro.dll) Version: 2.21.121
Syntax
C#
public int SetComPortSpec(
	ComPortComPortSpec paramComPortSpecificationStructure
)

Parameters

paramComPortSpecificationStructure  ComPortComPortSpec
Structure that contains information about how the serial port will be configured.

Return Value

Int32
UShort if sending the new com port specification was successful. 0 = successful.
Exceptions
ExceptionCondition
NotSupportedExceptionThe COMPORT does not supports a part of the specified configuration. See messages for more information.
InvalidOperationExceptionThe COMPORT is not registered.

Version Information

.NET

Supported in: 6.0

.NET Compact Framework

Supported in: 3.5
See Also