Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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
- DataRowChangeEvent.cs
- ConnectionPointCookie.cs
- ConstructorNeedsTagAttribute.cs
- GB18030Encoding.cs
- IdentityReference.cs
- TextDocumentView.cs
- ApplicationDirectory.cs
- Int16Animation.cs
- CultureInfoConverter.cs
- SchemaCollectionPreprocessor.cs
- DelimitedListTraceListener.cs
- ExitEventArgs.cs
- FieldNameLookup.cs
- ControlBuilder.cs
- OdbcConnectionFactory.cs
- Sql8ExpressionRewriter.cs
- HttpRequestWrapper.cs
- TypeResolver.cs
- StylusPointPropertyUnit.cs
- EncryptedKey.cs
- MergablePropertyAttribute.cs
- SafeNativeMethods.cs
- WebBaseEventKeyComparer.cs
- SearchForVirtualItemEventArgs.cs
- XmlAtomicValue.cs
- KnownColorTable.cs
- VideoDrawing.cs
- XamlVector3DCollectionSerializer.cs
- WebAdminConfigurationHelper.cs
- TableItemPatternIdentifiers.cs
- ValidationErrorCollection.cs
- CompilationSection.cs
- fixedPageContentExtractor.cs
- SpecialFolderEnumConverter.cs
- PropertyIDSet.cs
- Privilege.cs
- StatusBarPanelClickEvent.cs
- GetMemberBinder.cs
- SchemaHelper.cs
- ControlCodeDomSerializer.cs
- DataStorage.cs
- SoapDocumentServiceAttribute.cs
- __FastResourceComparer.cs
- DocumentPage.cs
- UpdateException.cs
- BaseComponentEditor.cs
- CompiledIdentityConstraint.cs
- CustomAttribute.cs
- BrowserCapabilitiesFactory35.cs
- Perspective.cs
- MoveSizeWinEventHandler.cs
- TraceContext.cs
- ControlIdConverter.cs
- ConnectionManagementSection.cs
- UIServiceHelper.cs
- RequestResizeEvent.cs
- StateMachine.cs
- OpenCollectionAsyncResult.cs
- Socket.cs
- Validator.cs
- XmlHierarchicalDataSourceView.cs
- FloatMinMaxAggregationOperator.cs
- ConfigurationConverterBase.cs
- StreamGeometry.cs
- EditingCommands.cs
- Compiler.cs
- EnumDataContract.cs
- ApplicationInfo.cs
- SystemIPInterfaceProperties.cs
- TcpAppDomainProtocolHandler.cs
- XamlBrushSerializer.cs
- ListView.cs
- XmlTextWriter.cs
- WebPartVerbsEventArgs.cs
- GridEntryCollection.cs
- UnsafeNativeMethods.cs
- VersionPair.cs
- Parser.cs
- InternalTypeHelper.cs
- BufferedGenericXmlSecurityToken.cs
- AutoFocusStyle.xaml.cs
- ResXResourceReader.cs
- GradientStop.cs
- Block.cs
- InvokeHandlers.cs
- ActiveXContainer.cs
- MailWriter.cs
- FormClosedEvent.cs
- UTF7Encoding.cs
- QueryOptionExpression.cs
- CacheVirtualItemsEvent.cs
- BaseTreeIterator.cs
- HuffCodec.cs
- RemotingConfiguration.cs
- DataGridState.cs
- DefaultEvaluationContext.cs
- COM2PictureConverter.cs
- CodeConstructor.cs
- MetadataItem_Static.cs
- WpfWebRequestHelper.cs