Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / ndp / fx / src / Sys / System / IO / Ports / SerialErrors.cs / 1 / 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
- ClassDataContract.cs
- PagerStyle.cs
- BinaryConverter.cs
- RenderData.cs
- StatusStrip.cs
- ToolboxDataAttribute.cs
- Dispatcher.cs
- WebUtil.cs
- OutgoingWebRequestContext.cs
- MediaPlayerState.cs
- MiniCustomAttributeInfo.cs
- SplitterDesigner.cs
- AnyAllSearchOperator.cs
- CommandPlan.cs
- XmlDictionaryReader.cs
- DateTimeOffset.cs
- X509ChainElement.cs
- MembershipUser.cs
- Span.cs
- Path.cs
- StringExpressionSet.cs
- ThreadExceptionEvent.cs
- EntityDataSourceWrapper.cs
- GlyphRunDrawing.cs
- WindowsRebar.cs
- ClientScriptManager.cs
- Binding.cs
- ExpandCollapseProviderWrapper.cs
- EmptyStringExpandableObjectConverter.cs
- Pkcs9Attribute.cs
- DbReferenceCollection.cs
- AuthenticationSchemesHelper.cs
- ExtensionSimplifierMarkupObject.cs
- UnsettableComboBox.cs
- ThemeInfoAttribute.cs
- ModelTreeEnumerator.cs
- PingOptions.cs
- UrlAuthFailedErrorFormatter.cs
- Rectangle.cs
- FontStyles.cs
- DbExpressionVisitor.cs
- LoadGrammarCompletedEventArgs.cs
- XmlQualifiedName.cs
- SaveFileDialog.cs
- ProtocolsConfigurationHandler.cs
- JapaneseLunisolarCalendar.cs
- EntityTemplateUserControl.cs
- FixedHyperLink.cs
- RecipientInfo.cs
- StreamInfo.cs
- DecoderReplacementFallback.cs
- QilNode.cs
- ApplicationException.cs
- Transaction.cs
- BitmapEffectCollection.cs
- ListViewUpdatedEventArgs.cs
- ColumnHeader.cs
- XmlConvert.cs
- DPCustomTypeDescriptor.cs
- BatchWriter.cs
- BaseParser.cs
- counter.cs
- RelationshipDetailsCollection.cs
- Guid.cs
- ConstructorBuilder.cs
- DirectoryNotFoundException.cs
- ProcessModule.cs
- NumericUpDownAcceleration.cs
- UInt16Storage.cs
- CodeSubDirectoriesCollection.cs
- ResourceDescriptionAttribute.cs
- ListMarkerSourceInfo.cs
- FunctionDescription.cs
- EmptyCollection.cs
- AxImporter.cs
- ColumnMapTranslator.cs
- Stylesheet.cs
- SerializationAttributes.cs
- WebConvert.cs
- BitmapCodecInfoInternal.cs
- RtfToXamlLexer.cs
- MetaModel.cs
- ImageCodecInfo.cs
- TraceContextRecord.cs
- DefaultSettingsSection.cs
- GeneralTransform3D.cs
- SqlUserDefinedTypeAttribute.cs
- ClientSession.cs
- SchemaType.cs
- AttachedPropertyDescriptor.cs
- CompModSwitches.cs
- DuplicateWaitObjectException.cs
- ExpressionBuilderContext.cs
- Double.cs
- RMEnrollmentPage1.cs
- MethodExpr.cs
- DrawingGroup.cs
- BasicViewGenerator.cs
- StorageMappingItemLoader.cs
- RenderOptions.cs