Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / Sys / System / IO / Ports / SerialErrors.cs / 1305376 / SerialErrors.cs
// ==++== // // Copyright (c) Microsoft Corporation. All rights reserved. // // ==--== /*============================================================ ** ** Type: SerialError ** ** Purpose: Describes the types of serial port errors. ** ** Date: August 2002 ** ** ===========================================================*/ using Microsoft.Win32; namespace System.IO.Ports { public enum SerialError { TXFull = NativeMethods.CE_TXFULL, RXOver = NativeMethods.CE_RXOVER, Overrun = NativeMethods.CE_OVERRUN, RXParity = NativeMethods.CE_PARITY, Frame = NativeMethods.CE_FRAME, } public class SerialErrorReceivedEventArgs : EventArgs { private SerialError errorType; internal SerialErrorReceivedEventArgs(SerialError eventCode) { errorType = eventCode; } public SerialError EventType { get { return errorType; } } } public delegate void SerialErrorReceivedEventHandler(object sender, SerialErrorReceivedEventArgs e); } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // ==++== // // Copyright (c) Microsoft Corporation. All rights reserved. // // ==--== /*============================================================ ** ** Type: SerialError ** ** Purpose: Describes the types of serial port errors. ** ** Date: August 2002 ** ** ===========================================================*/ using Microsoft.Win32; namespace System.IO.Ports { public enum SerialError { TXFull = NativeMethods.CE_TXFULL, RXOver = NativeMethods.CE_RXOVER, Overrun = NativeMethods.CE_OVERRUN, RXParity = NativeMethods.CE_PARITY, Frame = NativeMethods.CE_FRAME, } public class SerialErrorReceivedEventArgs : EventArgs { private SerialError errorType; internal SerialErrorReceivedEventArgs(SerialError eventCode) { errorType = eventCode; } public SerialError EventType { get { return errorType; } } } public delegate void SerialErrorReceivedEventHandler(object sender, SerialErrorReceivedEventArgs e); } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- IndependentAnimationStorage.cs
- LinearGradientBrush.cs
- Pkcs7Signer.cs
- TemplateBindingExtensionConverter.cs
- ImmutableClientRuntime.cs
- StylusPointProperties.cs
- EventBuilder.cs
- ExtensionQuery.cs
- StickyNoteHelper.cs
- ProxyHwnd.cs
- BaseAsyncResult.cs
- OleDbReferenceCollection.cs
- MouseButton.cs
- RegexBoyerMoore.cs
- ModifiableIteratorCollection.cs
- DependencySource.cs
- Funcletizer.cs
- VarRemapper.cs
- TextBox.cs
- ConstructorBuilder.cs
- TypeConverterValueSerializer.cs
- UnsafeCollabNativeMethods.cs
- HelpExampleGenerator.cs
- SqlParameterizer.cs
- EditingMode.cs
- XNodeNavigator.cs
- IgnorePropertiesAttribute.cs
- NegatedConstant.cs
- StrokeNode.cs
- EncodingTable.cs
- EndpointDiscoveryMetadata.cs
- XmlDataSource.cs
- DbModificationCommandTree.cs
- Panel.cs
- SQLBoolean.cs
- ActivityCodeGenerator.cs
- UInt16.cs
- DesignerVerb.cs
- EventTrigger.cs
- PasswordBox.cs
- ConstraintStruct.cs
- recordstatescratchpad.cs
- DataListItemEventArgs.cs
- TextTreeUndo.cs
- RemotingException.cs
- StorageInfo.cs
- SpellerStatusTable.cs
- ListViewAutomationPeer.cs
- XPathNavigator.cs
- ProfessionalColorTable.cs
- RawStylusInputReport.cs
- FunctionDefinition.cs
- ThreadStartException.cs
- MembershipSection.cs
- ReadOnlyCollection.cs
- SQLDateTime.cs
- ToolStrip.cs
- DnsPermission.cs
- WindowsSecurityTokenAuthenticator.cs
- SqlEnums.cs
- ApplicationServiceManager.cs
- TypeEnumerableViewSchema.cs
- JsonServiceDocumentSerializer.cs
- DataGridTablesFactory.cs
- DateTimeValueSerializerContext.cs
- GraphicsState.cs
- DocumentScope.cs
- ToolStripDropDownButton.cs
- IndicShape.cs
- BrowserCapabilitiesFactoryBase.cs
- UnsignedPublishLicense.cs
- Container.cs
- WithStatement.cs
- InvalidProgramException.cs
- SqlUdtInfo.cs
- RadioButton.cs
- GroupBoxRenderer.cs
- StrokeRenderer.cs
- SqlCharStream.cs
- SettingsPropertyValue.cs
- RealProxy.cs
- COM2ComponentEditor.cs
- ipaddressinformationcollection.cs
- BamlReader.cs
- RequestQueryParser.cs
- DataGridViewControlCollection.cs
- EmptyTextWriter.cs
- ScriptDescriptor.cs
- SevenBitStream.cs
- ValueType.cs
- StringConverter.cs
- ChangeDirector.cs
- SystemFonts.cs
- RotateTransform3D.cs
- WSTrustDec2005.cs
- MissingMethodException.cs
- Int64.cs
- ComAdminInterfaces.cs
- ArrayItemValue.cs
- SapiRecoContext.cs