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
- ExceptionWrapper.cs
- ToolStripArrowRenderEventArgs.cs
- MessageFault.cs
- CallbackException.cs
- LineBreakRecord.cs
- AxisAngleRotation3D.cs
- ToolStripRenderer.cs
- Paragraph.cs
- ToolboxComponentsCreatingEventArgs.cs
- AttributeEmitter.cs
- objectquery_tresulttype.cs
- ProfilePropertySettings.cs
- DSASignatureFormatter.cs
- EtwTrace.cs
- TextBox.cs
- ResourceDescriptionAttribute.cs
- SubpageParagraph.cs
- ValidatorCollection.cs
- OrthographicCamera.cs
- SrgsText.cs
- PolicyManager.cs
- RadioButtonFlatAdapter.cs
- CodeTypeDelegate.cs
- _NestedMultipleAsyncResult.cs
- XPathScanner.cs
- UriExt.cs
- SchemaNamespaceManager.cs
- ProtocolsConfigurationHandler.cs
- XmlTypeAttribute.cs
- CaseCqlBlock.cs
- SingleAnimation.cs
- HtmlShim.cs
- FlowDocumentFormatter.cs
- SocketException.cs
- TextRenderer.cs
- OrderedDictionary.cs
- ResponseBodyWriter.cs
- BoolExpr.cs
- SetStoryboardSpeedRatio.cs
- DPTypeDescriptorContext.cs
- RootBuilder.cs
- UpdateEventArgs.cs
- SettingsAttributes.cs
- XamlSerializerUtil.cs
- UdpSocketReceiveManager.cs
- ClientBuildManager.cs
- RelatedImageListAttribute.cs
- IResourceProvider.cs
- LabelDesigner.cs
- DispatcherTimer.cs
- Size.cs
- PrintDocument.cs
- SupportingTokenDuplexChannel.cs
- TextView.cs
- SqlUdtInfo.cs
- ReversePositionQuery.cs
- BaseAppDomainProtocolHandler.cs
- RegexMatchCollection.cs
- VectorConverter.cs
- AspNetHostingPermission.cs
- ArrangedElementCollection.cs
- OleDbConnectionFactory.cs
- EventProviderWriter.cs
- MatrixTransform3D.cs
- StaticDataManager.cs
- BufferedOutputStream.cs
- TCPListener.cs
- GlobalEventManager.cs
- OneWayChannelFactory.cs
- XmlTypeAttribute.cs
- VideoDrawing.cs
- _ScatterGatherBuffers.cs
- CommandID.cs
- ADMembershipProvider.cs
- PathFigure.cs
- FixedSOMPage.cs
- SafeRightsManagementPubHandle.cs
- DateTimeOffset.cs
- EntityKey.cs
- SplitterCancelEvent.cs
- SqlMetaData.cs
- DbConnectionPoolGroup.cs
- DisplayNameAttribute.cs
- Exceptions.cs
- SBCSCodePageEncoding.cs
- SQLGuidStorage.cs
- TypeDelegator.cs
- ExpandableObjectConverter.cs
- NullableLongAverageAggregationOperator.cs
- PaperSize.cs
- MobileControlsSectionHelper.cs
- NamespaceList.cs
- Operator.cs
- X509Utils.cs
- PasswordBoxAutomationPeer.cs
- DocumentPageHost.cs
- ListBox.cs
- Button.cs
- FrameDimension.cs
- FamilyTypefaceCollection.cs