Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / clr / src / BCL / System / IO / EndOfStreamException.cs / 1305376 / EndOfStreamException.cs
// ==++== // // Copyright (c) Microsoft Corporation. All rights reserved. // // ==--== /*============================================================ ** ** Class: EndOfStreamException ** **[....] ** ** ** Purpose: Exception to be thrown when reading past end-of-file. ** ** ===========================================================*/ using System; using System.Runtime.Serialization; namespace System.IO { [Serializable] [System.Runtime.InteropServices.ComVisible(true)] public class EndOfStreamException : IOException { public EndOfStreamException() : base(Environment.GetResourceString("Arg_EndOfStreamException")) { SetErrorCode(__HResults.COR_E_ENDOFSTREAM); } public EndOfStreamException(String message) : base(message) { SetErrorCode(__HResults.COR_E_ENDOFSTREAM); } public EndOfStreamException(String message, Exception innerException) : base(message, innerException) { SetErrorCode(__HResults.COR_E_ENDOFSTREAM); } [System.Security.SecuritySafeCritical] // auto-generated protected EndOfStreamException(SerializationInfo info, StreamingContext context) : base (info, context) { } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // ==++== // // Copyright (c) Microsoft Corporation. All rights reserved. // // ==--== /*============================================================ ** ** Class: EndOfStreamException ** **[....] ** ** ** Purpose: Exception to be thrown when reading past end-of-file. ** ** ===========================================================*/ using System; using System.Runtime.Serialization; namespace System.IO { [Serializable] [System.Runtime.InteropServices.ComVisible(true)] public class EndOfStreamException : IOException { public EndOfStreamException() : base(Environment.GetResourceString("Arg_EndOfStreamException")) { SetErrorCode(__HResults.COR_E_ENDOFSTREAM); } public EndOfStreamException(String message) : base(message) { SetErrorCode(__HResults.COR_E_ENDOFSTREAM); } public EndOfStreamException(String message, Exception innerException) : base(message, innerException) { SetErrorCode(__HResults.COR_E_ENDOFSTREAM); } [System.Security.SecuritySafeCritical] // auto-generated protected EndOfStreamException(SerializationInfo info, StreamingContext context) : base (info, context) { } } } // 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
- SafeArrayRankMismatchException.cs
- SecurityTokenAttachmentMode.cs
- SQLInt32Storage.cs
- TemplatePropertyEntry.cs
- WindowHideOrCloseTracker.cs
- ColorBlend.cs
- XmlSchemaParticle.cs
- ScrollEventArgs.cs
- SchemaRegistration.cs
- returneventsaver.cs
- SerializationHelper.cs
- VectorCollection.cs
- Win32.cs
- panel.cs
- filewebresponse.cs
- ConfigurationElement.cs
- DocumentAutomationPeer.cs
- CaseStatement.cs
- CodeTypeReferenceExpression.cs
- ReaderWriterLockWrapper.cs
- ExclusiveNamedPipeTransportManager.cs
- HandlerMappingMemo.cs
- ConstructorBuilder.cs
- SqlBooleanMismatchVisitor.cs
- ProcessModule.cs
- CodeRegionDirective.cs
- TypeProvider.cs
- HttpServerChannel.cs
- AnnotationObservableCollection.cs
- RootBuilder.cs
- ObjectStateManagerMetadata.cs
- NameValueCollection.cs
- SoapObjectWriter.cs
- Stroke2.cs
- Models.cs
- DrawingVisualDrawingContext.cs
- ExecutionEngineException.cs
- DatatypeImplementation.cs
- TypeDelegator.cs
- RelationshipNavigation.cs
- NavigationPropertyEmitter.cs
- TypefaceCollection.cs
- METAHEADER.cs
- EventProviderWriter.cs
- Profiler.cs
- ObfuscationAttribute.cs
- BindingManagerDataErrorEventArgs.cs
- ObjectKeyFrameCollection.cs
- TypeElement.cs
- GeneralTransform3DTo2D.cs
- NullRuntimeConfig.cs
- ShapeTypeface.cs
- AspCompat.cs
- DocumentXPathNavigator.cs
- DeriveBytes.cs
- WebEvents.cs
- ItemType.cs
- DataGridViewBand.cs
- OperationContractAttribute.cs
- DataGridViewCellStyleChangedEventArgs.cs
- ParseHttpDate.cs
- RadialGradientBrush.cs
- SafeNativeHandle.cs
- KeyMatchBuilder.cs
- DataSysAttribute.cs
- WindowsImpersonationContext.cs
- ParallelActivityDesigner.cs
- LexicalChunk.cs
- NativeMethods.cs
- MemoryFailPoint.cs
- LocalBuilder.cs
- ReturnType.cs
- HttpWrapper.cs
- XmlSchemaSimpleTypeRestriction.cs
- ViewManager.cs
- SourceItem.cs
- handlecollector.cs
- ScrollEventArgs.cs
- WindowsScrollBarBits.cs
- DecimalKeyFrameCollection.cs
- ConnectionProviderAttribute.cs
- MissingManifestResourceException.cs
- BatchParser.cs
- ContractListAdapter.cs
- NameObjectCollectionBase.cs
- TemplateField.cs
- ComponentRenameEvent.cs
- IsolationInterop.cs
- XhtmlBasicLabelAdapter.cs
- FileVersionInfo.cs
- VirtualizedItemPattern.cs
- ipaddressinformationcollection.cs
- RuntimeConfig.cs
- DocumentGridPage.cs
- AppDomainAttributes.cs
- ParserContext.cs
- TransformerTypeCollection.cs
- SapiGrammar.cs
- Vector3D.cs
- AsymmetricKeyExchangeFormatter.cs