ISerial::SetAttribute
Description
Use of this method is discouraged. All the non-deprecated standard attributes are accessible via properties on the appropriate COM interfaces.
VB Prototype
SetAttribute(
attribute As Long,
attrState As Variant
)
C++ Prototype
HRESULT SetAttribute(
long attribute,
VARIANT attrState
);
Parameters
attribute
The attribute type to modify.
attrState
The value of the attribute.
Return Value
Refer to the table of return codes.
See Also
ComponentVersion, SpecVersion, HardwareInterfaceName, HardwareInterfaceNumber, HardwareInterfaceType, LockState, OptionString, ProgID, ResourceName, SessionType, SoftwareManufacturerID, SoftwareManufacturerName, Timeout, LastStatus, BytesAvailable, BaudRate, DataBits, ClearToSendState, DataCarrierDetectState, DataSetReadyState, DataTerminalReadyState, EndIn, EndOut, FlowControl, Parity, RingIndicatorState, RequestToSendState, StopBits, ReplacementCharacter, XONCharacter, XOFFCharacter, GetAttribute, SetAttribute, LockRsrc, UnlockRsrc, Init, Close, SetBufferSize, Flush, ISerial Overview