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
- milrender.cs
- DispatcherOperation.cs
- SchemaNames.cs
- ObjectManager.cs
- Currency.cs
- SQLBinary.cs
- CompilerCollection.cs
- SHA512Managed.cs
- TagNameToTypeMapper.cs
- ObjectContext.cs
- SqlNode.cs
- ListViewGroup.cs
- HtmlTableCellCollection.cs
- XmlLanguage.cs
- ObjectListTitleAttribute.cs
- SingleObjectCollection.cs
- SimpleLine.cs
- FormatException.cs
- PreloadedPackages.cs
- StorageMappingItemCollection.cs
- DaylightTime.cs
- HMACSHA512.cs
- TextRangeSerialization.cs
- CodeDesigner.cs
- LineInfo.cs
- SelectionRangeConverter.cs
- XmlLanguageConverter.cs
- RegexTypeEditor.cs
- TypeResolvingOptionsAttribute.cs
- CodeCompiler.cs
- SqlNotificationRequest.cs
- unitconverter.cs
- BigInt.cs
- XsltInput.cs
- SByte.cs
- RepeatBehaviorConverter.cs
- GeneratedView.cs
- RSACryptoServiceProvider.cs
- Clock.cs
- MultiPageTextView.cs
- SiteMapDataSource.cs
- RequestTimeoutManager.cs
- InputManager.cs
- LinqDataSourceDeleteEventArgs.cs
- PathParser.cs
- CompilerErrorCollection.cs
- WinInetCache.cs
- TextEditorThreadLocalStore.cs
- MatrixTransform3D.cs
- ReadOnlyObservableCollection.cs
- ServiceControllerDesigner.cs
- ScrollContentPresenter.cs
- ListMarkerLine.cs
- WorkflowRequestContext.cs
- MultiBindingExpression.cs
- MasterPageBuildProvider.cs
- ListViewVirtualItemsSelectionRangeChangedEvent.cs
- ReliabilityContractAttribute.cs
- DataStorage.cs
- LambdaCompiler.Lambda.cs
- XXXOnTypeBuilderInstantiation.cs
- TextPattern.cs
- InvokeCompletedEventArgs.cs
- Missing.cs
- cookie.cs
- DispatcherOperation.cs
- Util.cs
- columnmapfactory.cs
- SqlFacetAttribute.cs
- DataControlFieldCell.cs
- MouseActionValueSerializer.cs
- ToggleButton.cs
- XmlTextReaderImplHelpers.cs
- ZoomPercentageConverter.cs
- CTreeGenerator.cs
- EntityDataSourceChangingEventArgs.cs
- SimpleFieldTemplateUserControl.cs
- UIElement3D.cs
- WinInet.cs
- safelink.cs
- ComUdtElementCollection.cs
- FixedSOMPage.cs
- CodeIdentifiers.cs
- _HTTPDateParse.cs
- PropertyFilterAttribute.cs
- RoutedEventHandlerInfo.cs
- AbstractExpressions.cs
- SocketInformation.cs
- ScrollViewerAutomationPeer.cs
- ComplexPropertyEntry.cs
- OAVariantLib.cs
- Module.cs
- BindingMemberInfo.cs
- PersonalizationProviderCollection.cs
- XmlArrayItemAttributes.cs
- EventLogTraceListener.cs
- WebPart.cs
- CodeVariableReferenceExpression.cs
- InputScopeNameConverter.cs
- CredentialCache.cs